Initial commit

上级

要显示的变更太多。

To preserve performance only 1000 of 1000+ files are displayed.
version: 2
jobs:
build:
docker:
- image: circleci/rust:stretch
resource_class: xlarge
steps:
- checkout
- run:
name: Version Information
command: rustc --version; cargo --version; rustup --version
- run:
name: Install Dependencies
command: |
sudo sh -c 'echo "deb http://deb.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/backports.list'
sudo apt-get update
sudo apt-get install -y protobuf-compiler/stretch-backports cmake golang curl
sudo apt-get clean
sudo rm -r /var/lib/apt/lists/*
rustup component add clippy rustfmt
- run:
name: Setup Env
command: |
echo 'export TAG=0.1.${CIRCLE_BUILD_NUM}' >> $BASH_ENV
echo 'export IMAGE_NAME=myapp' >> $BASH_ENV
- run:
name: Linting
command: |
./scripts/clippy.sh
cargo fmt -- --check
- run:
name: Build All Targets
command: RUST_BACKTRACE=1 cargo build -j 16 --all --all-targets
- run:
name: Run All Unit Tests
command: cargo test --all --exclude testsuite
- run:
name: Run All End to End Tests
command: RUST_TEST_THREADS=2 cargo test --package testsuite
.git/
**/.terraform/
target/
# Ensure that text files that any contributor introduces to the repository
# have their line endings normalized to LF
* text=auto
# All known text filetypes
*.md text
*.proto text
*.rs text
*.sh text eol=lf
*.toml text
*.txt text
*.yml text
---
name: "\U0001F41B Bug report"
about: Create a bug report to help improve Libra Core
title: "[Bug]"
labels: bug
assignees: ''
---
# 🐛 Bug
<!-- A clear and concise description of what the bug is.
To report a security issue, please email security@libra.org. -->
## To reproduce
** Code snippet to reproduce **
```rust
# Your code goes here
# Please make sure it does not require any external dependencies
```
** Stack trace/error message **
```
// Paste the output here
```
## Expected Behavior
<!-- A clear and concise description of what you expected to happen. -->
## System information
**Please complete the following information:**
- <!-- Libra Version -->
- <!-- Rust Version -->
- <!-- Computer OS -->
## Additional context
Add any other context about the problem here.
---
name: "\U0001F680 Feature request"
about: Suggest a new feature in Libra Core
title: "[Feature Request]"
labels: enhancement
assignees: ''
---
# 🚀 Feature Request
<!-- A clear and concise description of the feature you are requesting -->
## Motivation
**Is your feature request related to a problem? Please describe.**
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
<!-- Please link to any relevant issues or other PRs! -->
## Pitch
**Describe the solution you'd like**
<!-- A clear and concise description of what you want to happen. -->
**Describe alternatives you've considered**
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
**Are you willing to open a pull request?** (See [CONTRIBUTING](../CONTRIBUTING.md))
## Additional context
<!-- Add any other context or screenshots about the feature request here. -->
---
name: ❓ Questions/Help
about: If you have questions, please check Discourse
---
## ❓ Questions and Help
### Please note that this issue tracker is not a help form and this issue will be closed.
Please contact the development team on [Discourse](https://community.libra.org)
<!--
Thank you for sending a PR. We appreciate you spending time to help improve the Libra project.
The project is undergoing daily changes. Pull Requests will be reviewed and responded to as time permits.
-->
## Motivation
(Write your motivation for proposed changes here.)
### Have you read the [Contributing Guidelines on pull requests](https://github.com/libra/libra/master/CONTRIBUTING.md#pull-requests)?
(Write your answer here.)
## Test Plan
(Share your test plan here. If you changed code, please provide us with clear instrutions for verifying that your changes work.)
## Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/libra/website, and link to your PR here.)
# Rust specific ignores
/target
**/*.rs.bk
# Cargo.lock is needed for deterministic testing and repeatable builds.
#
# Having it in the repo slows down development cycle.
#
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock