rerast
A tool for transforming Rust code using rules
파일 탐색기
최종 버전 다운로드 (.zip)- lib.rs
- Cargo.toml
- release.sh
- cargo-rerast.rs
- change_to_rule.rs
- chunked_diff.rs
- code_substitution.rs
- definitions.rs
- errors.rs
- file_loader.rs
- lib.rs
- rule_finder.rs
- rule_matcher.rs
- rules.rs
- validation.rs
- lib.rs
- Cargo.toml
- Cargo.toml
- lib.rs
- disabled_integration_test.rs
- Cargo.toml
- cargo_rerast_tests.rs
- .gitignore
- .travis.yml
- Cargo.lock
- Cargo.toml
- CONTRIBUTING.md
- COOKBOOK.md
- LICENSE
- README.md
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/google/rerast
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd rerast
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Rust
보통 추천사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Rust (rustup) rustup으로 설치하면 cargo도 함께 설치됩니다.
cargo +nightly-2020-02-27 install --version 0.1.88 rerast
이 명령어를 터미널에 그대로 입력해 실행하세요.
cargo +nightly-2020-02-27 rerast --placeholders 'a: i32' --search 'a + 1' --replace_with 'a - 1' --diff
이 명령어를 터미널에 그대로 입력해 실행하세요.
cargo +nightly-2020-02-27 rerast --rules_file=my_rules.rs
이 명령어를 터미널에 그대로 입력해 실행하세요.
cargo +nightly-2020-02-27 rerast --placeholders 'a: i32' --search 'a + 1' --replace_with 'a - 1' --force --backup
이 명령어를 터미널에 그대로 입력해 실행하세요.
cargo +nightly-2020-02-27 rerast --rules_file=my_rules.rs --targets tests --file tests/testsuite/main.rs --diff
이 명령어를 터미널에 그대로 입력해 실행하세요.
cargo build가 에러 없이 끝나면 성공입니다. target/ 폴더에 실행 파일이 생성됩니다.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
// repository documentation
Was this content helpful?
(0 ratings)
