{"action":"created","issue":{"url":"https://api.github.com/repos/carllerche/mio/issues/302","labels_url":"https://api.github.com/repos/carllerche/mio/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/carllerche/mio/issues/302/comments","events_url":"https://api.github.com/repos/carllerche/mio/issues/302/events","html_url":"https://github.com/carllerche/mio/issues/302","id":116121528,"number":302,"title":"ws2_32 linked to by more than one package","user":{"login":"semperos","id":231375,"avatar_url":"https://avatars.githubusercontent.com/u/231375?v=3","gravatar_id":"","url":"https://api.github.com/users/semperos","html_url":"https://github.com/semperos","followers_url":"https://api.github.com/users/semperos/followers","following_url":"https://api.github.com/users/semperos/following{/other_user}","gists_url":"https://api.github.com/users/semperos/gists{/gist_id}","starred_url":"https://api.github.com/users/semperos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semperos/subscriptions","organizations_url":"https://api.github.com/users/semperos/orgs","repos_url":"https://api.github.com/users/semperos/repos","events_url":"https://api.github.com/users/semperos/events{/privacy}","received_events_url":"https://api.github.com/users/semperos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-10T14:51:34Z","updated_at":"2015-11-11T17:47:00Z","closed_at":null,"body":"I have a Cargo.toml of:\r\n\r\n```toml\r\n[package]\r\nname = \"example\"\r\nversion = \"0.1.0\"\r\nauthors = [\"Daniel Gregoire <foo@bar.com>\"]\r\n\r\n[dependencies.mio]\r\ngit = \"https://github.com/carllerche/mio\"\r\n```\r\n\r\nAnd a simple default main.rs file generated by Cargo for a `--bin` project.\r\n\r\nWhen I run `cargo run` I get the following build error:\r\n\r\n```\r\nnative library `ws2_32` is being linked to by more than one package, and can only be linked to by one package\r\n\r\n  ws2_32-sys v0.2.0\r\n  ws2_32-sys v0.1.0\r\n```\r\n\r\nThe Cargo.lock file looks like this:\r\n\r\n```toml\r\n[root]\r\nname = \"example\"\r\nversion = \"0.1.0\"\r\ndependencies = [\r\n \"mio 0.5.0-pre (git+https://github.com/carllerche/mio)\",\r\n]\r\n\r\n[[package]]\r\nname = \"bitflags\"\r\nversion = \"0.3.2\"\r\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\r\n\r\n[[package]]\r\nname = \"bytes\"\r\nversion = \"0.2.10\"\r\nsource = \"git+https://github.com/carllerche/bytes?rev=7edb577d0a#7edb577d0ae7302606636cb0154e0d067ad7affd\"\r\n\r\n[[package]]\r\nname = \"cfg-if\"\r\nversion = \"0.1.0\"\r\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\r\n\r\n[[package]]\r\nname = \"kernel32-sys\"\r\nversion = \"0.1.4\"\r\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\r\ndependencies = [\r\n \"winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n]\r\n\r\n[[package]]\r\nname = \"kernel32-sys\"\r\nversion = \"0.2.1\"\r\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\r\ndependencies = [\r\n \"winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n]\r\n\r\n[[package]]\r\nname = \"libc\"\r\nversion = \"0.1.12\"\r\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\r\n\r\n[[package]]\r\nname = \"libc\"\r\nversion = \"0.2.1\"\r\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\r\n\r\n[[package]]\r\nname = \"log\"\r\nversion = \"0.3.3\"\r\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\r\ndependencies = [\r\n \"libc 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n]\r\n\r\n[[package]]\r\nname = \"mio\"\r\nversion = \"0.5.0-pre\"\r\nsource = \"git+https://github.com/carllerche/mio#70298b27e29743845b15e35244c110b46eb7d3f3\"\r\ndependencies = [\r\n \"bytes 0.2.10 (git+https://github.com/carllerche/bytes?rev=7edb577d0a)\",\r\n \"libc 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"log 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"miow 0.1.0 (git+https://github.com/alexcrichton/miow?rev=2adb93247f)\",\r\n \"net2 0.2.17 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"nix 0.4.1 (git+https://github.com/carllerche/nix-rust?rev=ad87c3bdc9)\",\r\n \"slab 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n]\r\n\r\n[[package]]\r\nname = \"miow\"\r\nversion = \"0.1.0\"\r\nsource = \"git+https://github.com/alexcrichton/miow?rev=2adb93247f#2adb93247f361771d045da3c014d371673f949a2\"\r\ndependencies = [\r\n \"kernel32-sys 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"libc 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"net2 0.2.17 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"ws2_32-sys 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n]\r\n\r\n[[package]]\r\nname = \"net2\"\r\nversion = \"0.2.17\"\r\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\r\ndependencies = [\r\n \"cfg-if 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"libc 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"ws2_32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n]\r\n\r\n[[package]]\r\nname = \"nix\"\r\nversion = \"0.4.1\"\r\nsource = \"git+https://github.com/carllerche/nix-rust?rev=ad87c3bdc9#ad87c3bdc99357f66af9260bce1eb6ae2cbfda98\"\r\ndependencies = [\r\n \"bitflags 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"libc 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n]\r\n\r\n[[package]]\r\nname = \"slab\"\r\nversion = \"0.1.2\"\r\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\r\n\r\n[[package]]\r\nname = \"time\"\r\nversion = \"0.1.34\"\r\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\r\ndependencies = [\r\n \"kernel32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"libc 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n]\r\n\r\n[[package]]\r\nname = \"winapi\"\r\nversion = \"0.2.5\"\r\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\r\n\r\n[[package]]\r\nname = \"winapi-build\"\r\nversion = \"0.1.1\"\r\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\r\n\r\n[[package]]\r\nname = \"ws2_32-sys\"\r\nversion = \"0.1.0\"\r\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\r\ndependencies = [\r\n \"winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n]\r\n\r\n[[package]]\r\nname = \"ws2_32-sys\"\r\nversion = \"0.2.0\"\r\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\r\ndependencies = [\r\n \"winapi 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n \"winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)\",\r\n]\r\n```\r\n\r\nI'm relatively new to the Rust and Cargo ecosystem. In other build tools, I've been able to override transitive dependencies locally, but everything I've seen seems to suggest \"contact the developer(s) and have them update dependencies.\"\r\n\r\nWhat do you recommend here?"},"comment":{"url":"https://api.github.com/repos/carllerche/mio/issues/comments/155859124","html_url":"https://github.com/carllerche/mio/issues/302#issuecomment-155859124","issue_url":"https://api.github.com/repos/carllerche/mio/issues/302","id":155859124,"user":{"login":"carllerche","id":6180,"avatar_url":"https://avatars.githubusercontent.com/u/6180?v=3","gravatar_id":"","url":"https://api.github.com/users/carllerche","html_url":"https://github.com/carllerche","followers_url":"https://api.github.com/users/carllerche/followers","following_url":"https://api.github.com/users/carllerche/following{/other_user}","gists_url":"https://api.github.com/users/carllerche/gists{/gist_id}","starred_url":"https://api.github.com/users/carllerche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carllerche/subscriptions","organizations_url":"https://api.github.com/users/carllerche/orgs","repos_url":"https://api.github.com/users/carllerche/repos","events_url":"https://api.github.com/users/carllerche/events{/privacy}","received_events_url":"https://api.github.com/users/carllerche/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T17:47:00Z","updated_at":"2015-11-11T17:47:00Z","body":"@MarkSwanson Is this resolved on master now that I updated the `miow` dep?"}}