-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing build with html5ever #4
Comments
Thanks for reporting this including a repo for reproducing the error and your detailed report! I see a further difference:
vs
Which explains why the library is available as I'll investigate further... |
I suspect this is down to the fact that the crate is called [lib]
name = "debug_unreachable"
path = "src/lib.rs" That is exposed in the {
"id": "futf 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
"dependencies": [
"mac 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"new_debug_unreachable 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)"
],
"deps": [
{
"name": "mac",
"pkg": "mac 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)"
},
{
"name": "debug_unreachable",
"pkg": "new_debug_unreachable 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)"
}
],
"features": []
},
Now I need to investigate on how to make this work with diff --git a/default.nix b/default.nix
index de58004..50fb7ea 100644
--- a/default.nix
+++ b/default.nix
@@ -235,10 +235,14 @@ rec {
};
"new_debug_unreachable 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)"
= buildRustCrate {
- crateName = "new_debug_unreachable";
+ crateName = "debug_unreachable";
version = "1.0.3";
edition = "2015";
sha256 = "1lxbd0n9gwvzg41bxiij0c28g1sp1jhp4h1rh10qisc8viyhsdj0";
+ src = builtins.fetchGit {
+ url = "https://github.com/mbrubeck/rust-debug-unreachable";
+ rev = "e374f6990882871d62ddcd1d9964b26ac50c5c7e";
+ };
libPath = "src/lib.rs";
authors = [
"Matt Brubeck <mbrubeck@limpet.net>" (Obviously, the source should be fetched from crates.io instead, this is just a proof of concept.) With this fix, I run into a similar problem with the utf_8 crate, though, which exports the utf8 library. I'll try to fix this today -- if that doesn't work out, you'll probably need to wait until at least next weekend :( |
Does this solve your problem? Please continue to send me such awesome bug reports, @nuxeh! |
@kolloch it does appear to have solved the problem for the test repo, but for my own project, https://github.com/nuxeh/url-bot-rs, there's still the following error, this time for
So as far as i can tell, not out of the woods yet. Thanks for looking at this, i'll certainly report anything else i find :) |
Hmm, I can't imagine that that's uncommon, but it looks slightly suspicious for a normal Cargo project to me, just |
I created #5 for this. |
Hi,
I'm having issues building with nix for crates with html5ever as a dependency.
https://github.com/nuxeh/crate2nix-test is an example repo with a
default.nix
generated bycrate2nix 0.3.0-beta.0
The build seems to fail due to the missing extern crate,
new_debug_unreachable
:I've done some debugging but haven't been able to track down what the issue is. The build order differs, and besides that, the only difference i can see is that the
rustc
invocations differ in the output directory, compared with building with cargo:--out-dir target/lib
--out-dir /home/ed/git/url-bot-rs/target/debug/deps
Thanks.
The text was updated successfully, but these errors were encountered: