GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Faith Ekstrand (gfxstrand@mastodon.gamedev.place)'s status on Saturday, 02-Sep-2023 19:58:04 JST Faith Ekstrand Faith Ekstrand

    A bit annoyed by the documentation situation with #rustLang... As with most things in Rust land, it's great if you use cargo and it really sucks if you don't.

    Unlike rustfmt, rustdoc actually has to be able to compile the code so it needs access to all your dependencies. You can't just invoke rustdoc on foo.rs and call it a day. It really needs to be invoked by the build system. Worse, it doesn't support all the same flags as rustc, some of which are used by meson.

    In conversation Saturday, 02-Sep-2023 19:58:04 JST from mastodon.gamedev.place permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: foo.hr
      Home
    • Embed this notice
      Kristian H. Kristensen (krh@fosstodon.org)'s status on Saturday, 02-Sep-2023 19:58:01 JST Kristian H. Kristensen Kristian H. Kristensen
      in reply to

      @gfxstrand I'll admit to having thought, "if I just rewrite enough of the project in rust, we could switch to cargo and just use meson for the remaining C/C++ parts."

      In conversation Saturday, 02-Sep-2023 19:58:01 JST permalink
    • Embed this notice
      Neal Gompa (ニール・ゴンパ) :fedora: (conan_kudo@fosstodon.org)'s status on Saturday, 02-Sep-2023 19:58:01 JST Neal Gompa (ニール・ゴンパ) :fedora: Neal Gompa (ニール・ゴンパ) :fedora:
      in reply to
      • Kristian H. Kristensen

      @krh @gfxstrand It's easy enough to see Rust is actively hostile to external build systems, though. It's really difficult to use Rust in a non-Cargo context and they don't have nice things to say when you ask for help trying to do it.

      That being said, I was soured on Meson for different reasons (mostly the unstable behavior/API from version to version) and generally prefer to use CMake.

      In conversation Saturday, 02-Sep-2023 19:58:01 JST permalink
      Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      Kristian H. Kristensen (krh@fosstodon.org)'s status on Saturday, 02-Sep-2023 19:58:02 JST Kristian H. Kristensen Kristian H. Kristensen
      in reply to

      @gfxstrand Meson is actively hostile towards rust and it has really soured me on meson. Declarative build system sounds nice until you realize what a gatekeeper it is.

      In conversation Saturday, 02-Sep-2023 19:58:02 JST permalink
    • Embed this notice
      Faith Ekstrand (gfxstrand@mastodon.gamedev.place)'s status on Saturday, 02-Sep-2023 19:58:04 JST Faith Ekstrand Faith Ekstrand
      in reply to

      I mean, it makes sense why they do that. You want to be able to run proc macros so you can determine auto-derived traits and stuff like that. Also, rustdoc for one package will generate links to docs for other packages which is pretty neat. You can't really do that without compiling and tying into cargo. Unfortunately, as with a lot of other stuff, that leaves those of us trying to use other build systems in a real pickle.

      In conversation Saturday, 02-Sep-2023 19:58:04 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.