forked from dfinity/sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add nix-shell and cargo at the root of SDK (dfinity#41)
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
Showing
33 changed files
with
847 additions
and
1,012 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,9 @@ result* | |
build/ | ||
target/ | ||
|
||
# Nix-related directories. | ||
.cargo-home/ | ||
|
||
# IDEs | ||
.idea/ | ||
.vscode/ | ||
|
Oops, something went wrong.