From 7237e9d34a61629d5bedce3b9cc46c8a1344d78a Mon Sep 17 00:00:00 2001 From: "Kevin (Kun) \"Kassimo\" Qian" Date: Wed, 1 May 2019 02:08:12 -0700 Subject: fs: add Deno.utime/Deno.utimeSync (#2241) --- build_extra/rust/BUILD.gn | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'build_extra/rust') 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" -- cgit v1.2.3