Rustmax 0.0.11 Released
Originally published at Rustmax.
Rustmax 0.0.11 is released with 76 commits since 0.0.10.
Derive macros through rustmax
An ongoing problem with using the rustmax crate is that
many of the re-exported procedural macros emit code that doesn't
compile.
This release includes a partial solution for some of the derive macros.
The new #[rmx::derive(..)] attribute stands in for #[derive(..)]
and makes the serde, clap, derive_more and num_enum derives
work through rustmax alone:
#[rmx::derive(Serialize, Deserialize, Clone, Debug)]
#[serde(rename_all = "camelCase")]
struct Config {
some_field: u32,
}
thiserror and cxx still need a direct dependency.
The guide's Macros section explains why.
Profile changes
The profiles are simpler, and some are renamed or gone:
rmx-profile-netis renamedrmx-profile-tokio, and holds onlytokioand the crates that depend on it:hyper,reqwest,tower, and the newhttp-body-utilandhyper-util.http,mimeandurlmove tormx-profile-portable, andsocket2tormx-profile-std.rmx-profile-cliis gone;ctrlc,rustylineandtermcolorare inrmx-profile-std.rmx-profile-fullis renamedrmx-profile-max. The oldrmx-profile-maxis gone, along withrmx-feature-tokioandrmx-feature-backtrace, neither of which did anything.
Crate changes
New:
http-body-util- body types forhyper1.xhyper-util-tokioglue and a pooling client forhyperlibm- floating-point math for no-stdrustc-hash- the fast hash function used byrustctar- tar archives
Removed:
axum
Upgraded:
comrak0.54 → 0.57rustyline18 → 19zip8 → 9
The Rustmax Book
I've done some consolidation and cleanup here to make it a bit more useful. The "Concept Index" chapter is now a fairly comprehensive glossary of Rust terms with links. The "Rustmax Radar" is cleaned up and organized and descriptive.
Also
rustmax searchis reimplemented in Rust, no longer needs node, and matches multi-word queries like "hash map".bug!with a message actually compiles.rustmax-cliinstallscargo-sweep.- Mostly-empty chapters of the book have been consolidated.
- The book has a concept index and a merged "How Do I" chapter.
- The crate guide is reorganized.
- The library books are rebuilt at their latest upstream commits.