Configuration variables and consoles for games in Rust. An alternative to inline_tweak / const-tweaker with different tradeoffs.
AGPL-3.0 License
Published by martin-t about 1 year ago
Published by martin-t over 1 year ago
Published by martin-t over 1 year ago
Published by martin-t over 1 year ago
#![cvars(sorted)]
to check if cvars are sortedPublished by martin-t over 1 year ago
Copy
types such as String
.Published by martin-t over 1 year ago
cvars!
no longer depends on #[derive(SetGet)]
.cvars!
no longer adds #[derive(Debug, Clone)]
to the generated struct. This might improve compile times with a large (~10k) number of cvars.cvars!
proc macro is no longer experimental and is the recommended way to use cvars because it is more convenient than #[derive(SetGet)]
.cvar_count()
and CVAR_COUNT
to get the number of cvars.0
, 1
, f
and t
for bool cvars.cvars!
now accepts inner attributes and comments - see its docs for usage examples.Published by martin-t over 1 year ago
Published by martin-t over 1 year ago
Published by martin-t over 1 year ago
Published by martin-t over 1 year ago
cvars-macros
v0.2.0cvars! {}
now generates a Default
impl that uses the specified values instead of a new
functionPublished by martin-t over 1 year ago
SetGet
trait for dynamic dispatchcvars! {}
#[cvars(skip)]
for ignoring some struct fieldscvars
cratePublished by martin-t about 3 years ago
SetGet
derive macro