Skip to content

Instantly share code, notes, and snippets.

@nbaksalyar
Created November 5, 2015 01:11
Show Gist options
  • Save nbaksalyar/0574359fad455f652b5a to your computer and use it in GitHub Desktop.
Save nbaksalyar/0574359fad455f652b5a to your computer and use it in GitHub Desktop.
temp replacement for Cargo.toml in rust-chat
[package]
name = "rust-chat"
version = "0.1.0"
authors = ["Nikita Baksalyar <nikita.baksalyar@gmail.com>"]
[dependencies]
http-muncher = "0.2.*"
sha1 = "0.1.*"
rustc-serialize = "0.3.*"
byteorder = "0.3.*"
mio = "0.4.*"
@amitsaha
Copy link

amitsaha commented Nov 5, 2015

Sorry, that didn't help. I am getting this error now:

Downloading libc v0.2.1
 Downloading http-muncher v0.2.2
 Downloading bitflags v0.1.1
 Downloading winapi v0.1.23
 Downloading rustc-serialize v0.3.16
 Downloading byteorder v0.3.13
 Downloading libc v0.1.12
 Downloading winapi-build v0.1.1
 Downloading clock_ticks v0.0.5
 Downloading bytes v0.2.11
 Downloading log v0.3.3
 Downloading winapi v0.2.4
 Downloading mio v0.4.3
 Downloading nix v0.3.9
 Downloading gcc v0.3.19
 Downloading slab v0.1.2
 Downloading sha1 v0.1.1
 Downloading advapi32-sys v0.1.2
   Compiling rustc-serialize v0.3.16
   Compiling bytes v0.2.11
   Compiling bitflags v0.1.1
   Compiling libc v0.1.12
   Compiling gcc v0.3.19
   Compiling slab v0.1.2
   Compiling libc v0.2.1
   Compiling winapi v0.1.23
   Compiling clock_ticks v0.0.5
/Users/amit/.cargo/registry/src/github.com-0a35038f75765ae4/clock_ticks-0.0.5/src/lib.rs:31:42: 31:60 error: import `mach_timebase_info` conflicts with value in this module [E0255]
/Users/amit/.cargo/registry/src/github.com-0a35038f75765ae4/clock_ticks-0.0.5/src/lib.rs:31     use libc::{timeval, timezone, c_int, mach_timebase_info};
                                                                                                                                     ^~~~~~~~~~~~~~~~~~
/Users/amit/.cargo/registry/src/github.com-0a35038f75765ae4/clock_ticks-0.0.5/src/lib.rs:31:42: 31:60 help: run `rustc --explain E0255` to see a detailed explanation
/Users/amit/.cargo/registry/src/github.com-0a35038f75765ae4/clock_ticks-0.0.5/src/lib.rs:37:9: 37:75 note: conflicting value here
/Users/amit/.cargo/registry/src/github.com-0a35038f75765ae4/clock_ticks-0.0.5/src/lib.rs:37         pub fn mach_timebase_info(info: *mut mach_timebase_info) -> c_int;
                                                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
Build failed, waiting for other jobs to finish...
Could not compile `clock_ticks`.

To learn more, run the command again with --verbose.

Thanks for looking into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment