Skip to content

Commit

Permalink
build: add nix-shell and cargo at the root of SDK
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 Larsen authored and hansl committed Sep 24, 2019
1 parent e9c6eab commit 515f179
Show file tree
Hide file tree
Showing 31 changed files with 846 additions and 1,009 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 515f179

Please sign in to comment.