Looking for best rust project structure on ICP

Hello ICP community!

I’m new to Rust programming and currently working on projects related to the Internet Computer. I would love some advice on the best practices for structuring Rust projects, especially in the context of ICP development. If you have any recommended resources, tutorials, or examples that could help me improve my skills, please share them. I’m eager to learn and contribute to the community!

Thanks in advance for your help!

1 Like

There’s an entire docs page o just that: https://internetcomputer.org/docs/current/developer-docs/backend/rust/project-organization

If you plan on writing a mostly standalone canister that doesn’t communicate with other canisters, then I can really recommend the split between interface and state machine that we use in the asset canister as it makes testing very easy

1 Like