This is a native implementation of the Ruby amq-protocol gem (an AMQP 0-9-1 serializer and deserializer)
that strives to be a (much) more efficient drop-in replacement
to be eventually adopted by Bunny.
bundle install
bundle exec rake compile
bundle exec rake specFor Rust linting:
cargo fmt --manifest-path ext/amq_protocol_native/Cargo.toml
cargo clippy --manifest-path ext/amq_protocol_native/Cargo.toml- This project requires Rust 1.70+
- Use top-level
usestatements (imports) to fully-qualified names, e.g.Displayorfmt::Displaywith ausestatement, tostd::fmt::Display - Never use function-local
usestatements (imports) - Add tests to the modules under
tests, never in the implementation files - At the end of each task, run
cargo fmt --all - At the end of each task, run
cargo clippy --alland fix any warnings it might emit
- Only add very important comments, both in tests and in the implementation
- Never add yourself to the list of commit co-authors
- Never add full stops to Markdown list items