summaryrefslogtreecommitdiff
path: root/build_extra/rust/BUILD.gn
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2019-05-01 02:08:12 -0700
committerRyan Dahl <ry@tinyclouds.org>2019-05-01 05:08:11 -0400
commit7237e9d34a61629d5bedce3b9cc46c8a1344d78a (patch)
tree6fd3edd47b9504903d73394dd6ff356e0ac79899 /build_extra/rust/BUILD.gn
parentc36b5dd01c2ff40cde07ed410d19e1c20e6137fc (diff)
fs: add Deno.utime/Deno.utimeSync (#2241)
Diffstat (limited to 'build_extra/rust/BUILD.gn')
-rw-r--r--build_extra/rust/BUILD.gn24
1 files changed, 24 insertions, 0 deletions
diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn
index 0972e77c6..c5d9da918 100644
--- a/build_extra/rust/BUILD.gn
+++ b/build_extra/rust/BUILD.gn
@@ -1714,6 +1714,30 @@ rust_crate("url") {
]
}
+rust_crate("utime") {
+ edition = "2015"
+ source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/utime-0.2.1/src/lib.rs"
+
+ if (is_win) {
+ extern = [ ":kernel32" ]
+ extern_version = [
+ {
+ crate_name = "winapi"
+ crate_version = "0.2.8"
+ },
+ ]
+ }
+
+ if (is_posix) {
+ extern = [ ":libc" ]
+ }
+
+ args = [
+ "--cap-lints",
+ "allow",
+ ]
+}
+
rust_crate("utf8_ranges") {
edition = "2015"
source_root = "$cargo_home/registry/src/github.com-1ecc6299db9ec823/utf8-ranges-1.0.2/src/lib.rs"