Dusty Pomerleau on Nostr: It uses `extern crate` to import a dependency, something that exists in the wild, if ...
It uses `extern crate` to import a dependency, something that exists in the wild, if you were ingesting a lot of code samples, but which you would be unlikely to do if you were a current Rust programmer.
It suggests running the example with: `"sh $ cargo run`. Huh. I mean that's interesting because if you were parsing a code sample that looked like:
```sh
$ cargo run
```
and you weren't a human, you might get...confused.
Published at
2024-09-10 07:53:53Event JSON
{
"id": "022173fa3b165c7f52ce2f4394bc2ee1a3750fadda87fe36277afa52fa836179",
"pubkey": "5bdfe5c3188a24f76efd37648930d8ada3e458961d03b2e0d62596d4f76e4778",
"created_at": 1725954833,
"kind": 1,
"tags": [
[
"e",
"b814b60c9ea5b586cf9413e19d71d3bf024bf0ec87059c4b16905cf1602ee198",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://fosstodon.org/users/dpom/statuses/113112175940592906",
"activitypub"
]
],
"content": "It uses `extern crate` to import a dependency, something that exists in the wild, if you were ingesting a lot of code samples, but which you would be unlikely to do if you were a current Rust programmer.\n\nIt suggests running the example with: `\"sh $ cargo run`. Huh. I mean that's interesting because if you were parsing a code sample that looked like:\n\n```sh\n$ cargo run\n```\n\nand you weren't a human, you might get...confused.",
"sig": "5078ba09d5d6243038da2cf43739068297ec2797186fbef67e81eb344ba35ee4d5ed1de802b71ccb9521c12304d54fe5b4be5206d400f44ec49c3681935c6634"
}