cvars

Configuration variables and consoles for games in Rust. An alternative to inline_tweak / const-tweaker with different tradeoffs.

AGPL-3.0 License

Downloads
30.6K
Stars
51
Committers
1
cvars - Cvars-console-fyrox v0.5.0 Latest Release

Published by martin-t 9 months ago

  • Breaking change: Update fyrox-ui to 0.24.0 (fyrox 0.33.0)
cvars - Cvars-console-fyrox v0.4.0 - 2023-10-28

Published by martin-t about 1 year ago

  • Breaking change: Update fyrox-ui to 0.23.0
cvars - Cvars-console-fyrox v0.3.0 - 2023-07-22

Published by martin-t over 1 year ago

  • Breaking change: Update fyrox-ui to 0.22.0
cvars - Cvars-console-macroquad v0.3.0 - 2023-07-15

Published by martin-t over 1 year ago

  • Breaking change: Update macroquad to 0.4.0
cvars - Cvars, cvars-macros v0.4.2

Published by martin-t over 1 year ago

  • Add #![cvars(sorted)] to check if cvars are sorted
cvars - Cvars-macros v0.4.1

Published by martin-t over 1 year ago

Cvars-macros v0.4.1 - 2023-07-08

  • Add support for non-Copy types such as String.
cvars - Cvars-v0.4.0, cvars-console-fyrox-v0.2.0, cvars-console-macroquad-v0.2.0

Published by martin-t over 1 year ago

Cvars and cvars-macros v0.4.0 - 2023-07-01

  • 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() and CVAR_COUNT to get the number of cvars.
  • Accept 0, 1, f and t for bool cvars.
  • cvars! now accepts inner attributes and comments - see its docs for usage examples.

Cvars-console-fyrox v0.2.0 - 2023-07-01

  • Breaking change: Update to cvars v0.4.0
  • Breaking change: Update to fyrox-ui v0.21.0

Cvars-console and cvars-console-macroquad v0.2.0 - 2023-07-01

  • Breaking change: Update to cvars v0.4.0
cvars - Cvars v0.3.1, cvars-macros v0.2.1

Published by martin-t over 1 year ago

Cvars v0.3.1, cvars-macros v0.2.1 - 2023-02-06

  • Fix and improve docs
cvars - Fyrox console v0.1.0, Macroquad console v0.1.0

Published by martin-t over 1 year ago

Cvars-console-fyrox v0.1.0 - 2023-02-06

  • First release - in-game console with history

Cvars-console-macroquad v0.1.0 - 2023-02-06

  • First release - in-game console with history
cvars - Console v0.1.0

Published by martin-t over 1 year ago

Cvars-console v0.1.0 - 2023-02-04

  • Basic help message
  • Command history
  • Setting / getting cvars
cvars - Cvars-v0.3.0, cvars-macros-v0.2.0

Published by martin-t over 1 year ago

Cvars v0.3.0 - 2023-02-04

  • Breaking change: Depend on cvars-macros v0.2.0

Cvars-macros v0.2.0 - 2023-02-04

  • Breaking change: cvars! {} now generates a Default impl that uses the specified values instead of a new function
cvars - Cvars-macros-v0.1.1, cvars-v0.2.0

Published by martin-t over 1 year ago

Cvars v0.2.0 - 2023-02-03

  • SetGet trait for dynamic dispatch

Cvars-macros 0.1.1 - 2023-02-03

  • Accept attributes in cvars! {}

Cvars-macros 0.1.0 - 2023-01-16

  • #[cvars(skip)] for ignoring some struct fields
  • First release - split off proc macros from the main cvars crate
cvars - First release

Published by martin-t about 3 years ago

SetGet derive macro