Skip to content

Commit

Permalink
Bug 1409444 - Update rand to 0.3.17. r=manishearth
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: DjCEQV9t2hi
  • Loading branch information
upsuper committed Oct 23, 2017
1 parent 8c2a535 commit 81aa6cf
Show file tree
Hide file tree
Showing 51 changed files with 4,638 additions and 131 deletions.
33 changes: 29 additions & 4 deletions testing/geckodriver/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions third_party/rust/fuchsia-zircon-sys/.cargo-checksum.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"files":{".cargo-ok":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","BUILD.gn":"862eccf06f706db5af1e0041b10b6b637dbc77257b6c4f536a72fc7d21d3dfb9","Cargo.toml":"d05607413136805977463d1c2b979e7692ea1ac06e051d598de440c64603e886","examples/hello.rs":"66c6a147b98b913fef8e7a7da6387fb735f7f1e2c00abc8794a32a8cf0320851","src/definitions.rs":"0b13b741cad9ba42c1da5b654c6d60f03183a7c79a5843e7734a95b4f934d81f","src/lib.rs":"83c8b96c64b442d72a7b87455f182e6ffef6bf2cd7aa2c0c88db992ac9060bda"},"package":"43f3795b4bae048dc6123a6b972cadde2e676f9ded08aef6bb77f5f157684a82"}
Empty file.
11 changes: 11 additions & 0 deletions third_party/rust/fuchsia-zircon-sys/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright 2017 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/rust/rust_library.gni")

rust_library("fuchsia-zircon-sys") {
deps = [
"//third_party/rust-crates:bitflags-0.7.0",
]
}
21 changes: 21 additions & 0 deletions third_party/rust/fuchsia-zircon-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g. crates.io) dependencies
#
# If you believe there's an error in this file please file an
# issue against the rust-lang/cargo repository. If you're
# editing this file be aware that the upstream Cargo.toml
# will likely look very different (and much more reasonable)

[package]
name = "fuchsia-zircon-sys"
version = "0.2.0"
authors = ["Raph Levien <raph@google.com>"]
description = "Low-level Rust bindings for the Zircon kernel"
license = "BSD-3-Clause"
repository = "https://fuchsia.googlesource.com/garnet/"
[dependencies.bitflags]
version = "0.7.0"
14 changes: 14 additions & 0 deletions third_party/rust/fuchsia-zircon-sys/examples/hello.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

extern crate fuchsia_zircon_sys as zircon_sys;

pub fn main() {
let time = unsafe { zircon_sys::zx_time_get(zircon_sys::ZX_CLOCK_MONOTONIC) };
println!("before sleep, time = {}", time);
unsafe { zircon_sys::zx_nanosleep(zircon_sys::zx_deadline_after(1000_000_000)); }
let time = unsafe { zircon_sys::zx_time_get(zircon_sys::ZX_CLOCK_MONOTONIC) };
println!("after sleep, time = {}", time);
}

Loading

0 comments on commit 81aa6cf

Please sign in to comment.