Jeff Martin on Nostr: Even though #Rust technically supports building a library and a binary out of the ...
Even though #Rust technically supports building a library and a binary out of the same crate, all of the tooling doesn't seem to handle it very well and I always regret setting up a project that way.
But the alternative is to spam sub-crates which has its own annoyances. Lots of annoyances! The tooling seems to handle it much better though, so meh?

Published at
2023-09-26 21:18:59Event JSON
{
"id": "cf05c007025abd942a9c47dea651b9fe9763207f8562ca1c8a1098ff00fdc542",
"pubkey": "4b06a99655066ca3e1a19ecc4bd5c5fd5d0f106a319a8cfb3c414bdff9e17c27",
"created_at": 1695763139,
"kind": 1,
"tags": [
[
"t",
"rust"
],
[
"emoji",
"blobcatverysad",
"https://files.gladtech.social/custom_emojis/images/000/009/557/original/9fe4ee0b3f5ea35f.png"
],
[
"emoji",
"blobcatgooglyshrug",
"https://files.gladtech.social/custom_emojis/images/000/005/749/original/74694c72049cc401.png"
],
[
"proxy",
"https://gladtech.social/users/cuchaz/statuses/111133533090063298",
"activitypub"
]
],
"content": "Even though #Rust technically supports building a library and a binary out of the same crate, all of the tooling doesn't seem to handle it very well and I always regret setting up a project that way. :blobcatverysad: \n\nBut the alternative is to spam sub-crates which has its own annoyances. Lots of annoyances! The tooling seems to handle it much better though, so meh? :blobcatgooglyshrug:",
"sig": "60fb861ce0004dd0aa330bf6488e05d279edbbf0d648586e734b950d8bb85c484d96ccc759dcff4cd70ce3b3d59f02bab6849b5a149e8c40548c039f53488768"
}