Awiteb on Nostr: They are same as any other functions in any programing languages. The `main` function ...
They are same as any other functions in any programing languages.
The `main` function is the entrypoint of your executable, if you're making a library `cargo new --lib` there is no entrypoint (no main function). So the libraries are just bunch of structures, traits, functions, etc.
Published at
2025-06-07 10:07:03Event JSON
{
"id": "00000639cec2c9c0ca04099cf414c78d89d48864ab7aa5d9c52f6a49b5c7f855",
"pubkey": "00000001505e7e48927046e9bbaa728b1f3b511227e2200c578d6e6bb0c77eb9",
"created_at": 1749290823,
"kind": 1,
"tags": [
[
"p",
"465eb13404d7219cd91c2b4a8a7e308ad4e09bc1298dc08c5eec852e9bf5da09",
"wss://relay.damus.io/",
"shortwavesurfer2009"
],
[
"e",
"84c956f32f8db76dd9e8591b2e55b301b1066f86a0b117813799a547b60123d0",
"wss://nostr.mom/",
"root",
"465eb13404d7219cd91c2b4a8a7e308ad4e09bc1298dc08c5eec852e9bf5da09"
],
[
"nonce",
"1359955",
"20"
]
],
"content": "They are same as any other functions in any programing languages.\n\nThe `main` function is the entrypoint of your executable, if you're making a library `cargo new --lib` there is no entrypoint (no main function). So the libraries are just bunch of structures, traits, functions, etc.",
"sig": "914ef6d0a22e63b6fca7fea0e4304111f2959323a96a4dfd56d0dd56a768246c199d307b29717e72397bffcb5d36035743fe95c05602d0ba35b0816226e462f6"
}