sinlov / rust_playground

rust code playground

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rust-ci

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
make grammar

# clean build
make cleanAll
# only support make run
  • make 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 cleanAll

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 ?

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

About

rust code playground

License:Apache License 2.0


Languages

Language:Makefile 66.8%Language:Rust 33.0%Language:RenderScript 0.2%