Skip to content

sinlov/rust_playground

ci codecov

deps.rs dependency

GitHub license GitHub latest SemVer tag) GitHub release)

Contributing

Contributor Covenant GitHub contributors

We welcome community contributions to this project.

Please read Contributor Guide for more information on how to get started.

请阅读有关 贡献者指南 以获取更多如何入门的信息

this is rust code playground

If you do not have Rust setup, please visit rust-lang.org for operating specific instructions. In order to run the test case you need Rust installed. To check your installations simply type:

edition = "2021"

$ rustc --version
$ cargo --version

Currently, a Rust version of 1.56.0 or higher

can run this project version is

  • rustc 1.56+
  • cargo 1.56+

how to use

# see help
make help
# run test grammar
make run.grammar

# run test tools
make run.tools

# clean build
make clean.all
  • make run.grammar and default env TEST_FILTER=grammar will generate the path_to_grammar.rs file and populate it with the first test in the list.
  • After supplying an answer for the first test case.
  • entering cargo run again will continue you on your src/grammarpath, with config file src/grammar.txt

when build error ?

# use CLI to clean build
make clean.all

how windows build this project?

install rust with rustup-init.exe in https://www.rust-lang.org/tools/install open with Windows!

cargo run
# if error use
rd /s /Q .\target
del .\src\path_to_grammar.rs

how to add new case group grammar?

add new case file at src/grammar.txt with name of src/grammar file

how to add new case group tools?

add new case file at src/tools.txt with name of src/tools file

About

rust code playground

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •