This is a shared changelog for all projects in this repo:
- The main
cvars
crate (with its internal proc macros incvars-macros
) - The console backend
cvars-console
- Frontends for game engines
- Breaking change: Update fyrox-ui to 0.24.0 (fyrox 0.33.0)
- Breaking change: Update fyrox-ui to 0.23.0 (fyrox 0.32.0)
- Breaking change: Update fyrox-ui to 0.22.0 (fyrox 0.31.0)
- Breaking change: Update macroquad to 0.4.0
- Add
#![cvars(sorted)]
to check if cvars are sorted
- Add support for non-
Copy
types such asString
.
- Breaking change: Update to cvars v0.4.0
- Breaking change: Update to fyrox-ui v0.21.0
- Breaking change: Update to cvars v0.4.0
- Update to syn 2
- Internal improvements: unified macro logic so
cvars!
no longer depends on#[derive(SetGet)]
. - Breaking change:
cvars!
no longer adds#[derive(Debug, Clone)]
to the generated struct. This might improve compile times with a large (~10k) number of cvars. - Reduce the amount of code generated per-cvar (6x fewer lines of LLVM IR):
- Recompile speedup after editing cvars: 10.5s -> 3.5s for 1k cvars (3x faster).
- Recompile speedup after editing other code: 700ms -> 450ms for 1k cvars (1.5x faster).
- The
cvars!
proc macro is no longer experimental and is the recommended way to use cvars because it is more convenient than#[derive(SetGet)]
. - Add
cvar_count()
andCVAR_COUNT
to get the number of cvars. - Accept
0
,1
,f
andt
for bool cvars. cvars!
now accepts inner attributes and comments - see its docs for usage examples.
- Fix docs of reexported items
- Fix and improve docs
- First release - in-game console with history
- First release - in-game console with history
- Basic help message
- Command history
- Setting / getting cvars
- Breaking change: The
cvars! {}
macro now generates aDefault
impl that uses the specified values instead of the default for the field's type. It no longer generates anew
function.
SetGet
trait for dynamic dispatch- Accept attributes and comments in
cvars! {}
#[cvars(skip)]
for ignoring some struct fields- First release - split off proc macros from the main
cvars
crate
- Experimental
cvars!
macro to generate theCvars
struct - Derive macro for structs (
#[derive(SetGet)]
) which generates getters and setters