Conflux-Chain/conflux-rust
소개
Conflux 프로토콜의 공식 Rust 구현입니다. https://doc.confluxnetwork.org
비즈니스 및 금융측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalConflux-Rust
Conflux-rust is a Rust-based implementation of the Conflux protocol. It is fast and reliable.
For Users
Please follow the Conflux Documentation to install and run Conflux.
For Developers
For a general overview of the crates, see Project Layout.
Contribution
Thank you for considering helping out with our source code. We appreciate any contributions, even the smallest fixes. Please read the guidelines on how to submit issues and pull requests. Note that if you want to propose significant changes to the Conflux protocol, please submit a CIP.
Building
The Minimum Supported Rust Version (MSRV) of this project is 1.100
See the doc for detailed instructions on how to build from source.
If you have modified any Rust code, please run the cargo_fmt.sh script before committing to format the code and ensure consistent code style.
Unit Tests
Unit tests come together with the Rust code. They can be invoked via cargo test --release --all. See the
Getting Started
page for more information.
Integration Tests
Integration tests are Python test scripts with the _test.py suffix in the tests directory and in the integration_tests/tests directory.
To run these tests:
- Setting up and activating a NEW virtual env via
source ./dev-support/activate_new_venv.sh. This command will create a new one with Python3.11to.venvand activate it each time you run it. Or you can simply run.venv/bin/activateto activate the created one. - Install the required Python packages using
bash ./dev-support/dep_pip3.shin the root directory. - Compile Conflux in release mode using
cargo build --release - Compile the
consensus_bench binaryusingcd tools/consensus_bench && cargo build --release - Fetch all submodule using
git submodule update --remote --recursive --init.
Then, you can run all integration tests using:
python3 tests/test_all.pyfor tests in thetestsdirectorypytest ./integration_tests/tests -vv -n 6 --dist loadscopefor tests in theintegration_testsdirectory
As for running tests with coverage, please refer to Coverage.
Resources
License
관련 프로젝트 살펴보기
불러오는 중…