86thumbs
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
skepller@lemmy.world to Programmer Humor@lemmy.mlEnglish · 3 days ago

TOML

lemmy.ml

message-square
28
fedilink
138

TOML

lemmy.ml

skepller@lemmy.world to Programmer Humor@lemmy.mlEnglish · 3 days ago
message-square
28
fedilink

cross-posted from: https://lemmy.world/post/43529621

  • HiddenLayer555@lemmy.ml
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    2 days ago

    Just write the Rust build configuration as a Rust struct at this point.

    • anton@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      If you want to load at runtime you can use https://docs.rs/ron/latest/ron/. The structs are a weird combination of the two ways to define a struct in rust, making the ron notation of structs invalid rust, but having proper enums makes it worth it.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

remote_follow_modal_title

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
community_visibility: public
globe

public_blurb

  • 42 users / day
  • 1.12K users / week
  • 1.94K users / month
  • 5.95K users / 6 months
  • number_of_local_subscribers
  • 41.2K subscribers
  • 1.96K Posts
  • 40.1K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org