forked from cr1901/safe-ftdi
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Chris Frantz <[email protected]>
- Loading branch information
Showing
3 changed files
with
39 additions
and
1 deletion.
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,32 @@ | ||
load( | ||
"@rules_rust//rust:defs.bzl", | ||
"rust_library", | ||
) | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
licenses([ | ||
"notice", # MIT from expression "MIT" | ||
]) | ||
|
||
rust_library( | ||
name = "safe_ftdi", | ||
srcs = glob(["src/*.rs"]), | ||
aliases = { | ||
}, | ||
crate_features = [ | ||
"default", | ||
], | ||
crate_root = "src/lib.rs", | ||
data = [], | ||
edition = "2018", | ||
rustc_flags = [ | ||
"--cap-lints=allow", | ||
], | ||
tags = [ | ||
"crate-name=safe-ftdi", | ||
], | ||
deps = [ | ||
"//third_party/rust/crates:libftdi1_sys", | ||
], | ||
) |
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
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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
load("@rules_rust//rust:repositories.bzl", "rust_repositories") | ||
load("//third_party/rust/crates:crates.bzl", "raze_fetch_remote_crates") | ||
|
||
def fetch_remote_crates(): | ||
raze_fetch_remote_crates() | ||
|
||
def rust_deps(): | ||
rust_repositories( | ||
edition = "2018", | ||
version = "1.58.0", | ||
) | ||
raze_fetch_remote_crates() | ||
fetch_remote_crates() |