-
Notifications
You must be signed in to change notification settings - Fork 244
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
Trouble Embedding noria_server #112
Comments
I think your issue is related to this: rust-lang/cargo#6211 Try using a more recent rust nightly and/or include |
Unfortunately, that doesn't seem to be the issue. I am on 1.31.0-nightly (updated Oct 28), and this is the build output:
Output remains the same with or without |
What does your test project do? If your code plans to interact with a Noria installation (i.e., you're trying to write a test application that uses Noria as a backend), you'll want to use the You would only need to embed |
I'm trying to write an application that uses Noria as a storage system, but it's client-only so I want to bundle the storage backend with the application. In a nutshell, the frontend and backend would be part of the same application. |
I see! In that case, you do indeed need Without more context, it's hard to tell why importing I suspect a |
The problem is that I'm not sure what should go in my |
Let's see.. This works fine for me: $ cat Cargo.toml
...
[dependencies]
noria = { git = "https://github.com/mit-pdos/noria.git" }
$ cat src/main.rs
extern crate noria;
... As does this: $ cat Cargo.toml
...
[dependencies]
noria = { git = "https://github.com/mit-pdos/noria.git" }
noria-server = { git = "https://github.com/mit-pdos/noria.git" }
$ cat src/main.rs
extern crate noria;
extern crate noria_server;
... Note that we currently always build Noria with a particular nightly ( $ rustup override set nightly-2018-10-01 |
In particular, it looks like the latest nightly crashes with a compiler bug while trying to compile one of Noria's dependencies ( |
So I set the dependencies accordingly, and it compiles just fine on the latest nightly. |
I am currently trying to embed noria_server into a testing project, and I can't seem to figure out what needs to go into
Cargo.toml
to pull in the noria_server code. Attempting to only include thenoria
crate inCargo.toml
throws an error stating that thenoria_server crate
cannot be found, while trying to pull it from GitHub directly throws a 404 error, presumably becausenoria_server
lives in a subfolder of thenoria
repo. Advise on this would be much appreciated.The text was updated successfully, but these errors were encountered: