Skip to content

Add documentation of style conventions - #151

Open
DJMcNab wants to merge 4 commits into
linebender:mainfrom
DJMcNab:document-style-conventions
Open

Add documentation of style conventions#151
DJMcNab wants to merge 4 commits into
linebender:mainfrom
DJMcNab:document-style-conventions

Conversation

@DJMcNab

@DJMcNab DJMcNab commented Aug 28, 2026

Copy link
Copy Markdown
Member

These docs are entirely intended to make creating new crates easier, and to allow for LLM-assisted resyncing to the correct format.

This is my current understanding of our best practise, as currently we have to dig through piles of repos to find it all out.


### Taplo

We currently use Taplo for TOML formatting - config file looks something like:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have any that aren't exactly this?

If not, we could just say "We currently use Taplo for TOML formatting. Use the following config file."

Comment on lines +107 to +112
By default, we do not promise to make our crates no-alloc. Crates which would otherwise be `no-alloc` should have a line such as:

```rust
// Avoid adding alloc in the future being a breaking change.
extern crate alloc as _;
```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think color currently is no-alloc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants