Ajuna Network Creator Hub

Logo

Hey there 👋 Welcome to Ajuna Network, the ecosystem for gamers and creators. This site is the entry point for all creators building or integrating on top of Ajuna Network!

View My GitHub Profile

Rust Development

Crate Naming Convention

There isn’t a standard naming convention for crates see this discussion however we recommend names in hyphen-delimited kebab-case with prefix ajuna-*, where appropriate.

Also consider using:

For example,

ajuna-dot4-engine
ajuna-dot4-client
ajuna-dot4-deployment

When publishing to crates.io, we want to double-check on the names as they are immutable.

Repo Naming Convention

The only standard we enforce in naming Rust-based repositories is using kebab-case. Most names should be acceptable as long as the names reflect their intended purposes.

Design Principles

There are numerous software design principles available to us. One that we strongly feel affinity towards is the KISS principle.

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.

Design Patterns

Design patterns are something we aren’t stressing over at the moment.

Once we identify common problems we will reflect on our codebase to enforce patterns where necessary.

However if you’re still interested, here is a comprehensive list.

Idioms

Best Practices

Most best practices will be suggested by simply running clippy over the codebase. However some of the noteworthy ones are:

Bad Practices

We want to avoid: