Skip to content

Commit

Permalink
build: add nix-shell and cargo at the root of SDK (dfinity#41)
Browse files Browse the repository at this point in the history
This adds CI, formatting and clippy (linting) to the whole project's
rust code, so some fixes in the lib/ folder are necessary. The tests
still passes, nix-shell and nix-build works (with build outputting
the right expected format).
  • Loading branch information
Hans authored Sep 24, 2019
1 parent b67f56e commit 28a0814
Show file tree
Hide file tree
Showing 33 changed files with 847 additions and 1,012 deletions.
6 changes: 6 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[target.'cfg(target_os = "linux")']
# "-C link-args..." is required to get the system API calls exported
rustflags = ["-W", "rust-2018-idioms", "-C", "link-args=-Wl,--export-dynamic"]

[build]
rustflags = ["-W", "rust-2018-idioms"]
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ result*
build/
target/

# Nix-related directories.
.cargo-home/

# IDEs
.idea/
.vscode/
Expand Down
Loading

0 comments on commit 28a0814

Please sign in to comment.