-
I have tried searching around and have found some similar issues, but nothing that quite matches what I'm seeing. I think an issue is arising when members of the If anyone can help point me in the right direction I'd be very grateful! Nix log:
Contents of the Cargo.toml which failed parsing: [package]
authors = ["Damir Jelić <poljar@termina.org.uk>"]
description = "Collection of common types and imports used in the matrix-sdk"
edition = "2021"
homepage = "https://github.com/matrix-org/matrix-rust-sdk"
keywords = ["matrix", "chat", "messaging", "ruma", "nio"]
license = "Apache-2.0"
name = "matrix-sdk-common"
readme = "README.md"
repository = "https://github.com/matrix-org/matrix-rust-sdk"
rust-version = "1.65"
version = "0.6.0"
[package.metadata.docs.rs]
default-target = "x86_64-unknown-linux-gnu"
targets = ["x86_64-unknown-linux-gnu", "wasm32-unknown-unknown"]
[features]
js = ["instant/wasm-bindgen", "instant/inaccurate", "wasm-bindgen-futures"]
[dependencies]
futures-core = "0.3.21"
instant = "0.1.12"
serde = "1.0.151"
serde_json = "1.0.91"
[dependencies.ruma]
git = "https://github.com/ruma/ruma"
rev = "543c03f8f2d0f5a357b6be41cc0e166aa58cce63"
features = ["client-api-c"]
[target."cfg(target_arch = \"wasm32\")".dependencies]
async-lock = "2.5.0"
[target."cfg(target_arch = \"wasm32\")".dependencies.futures-util]
workspace = true
features = ["channel"]
[target."cfg(target_arch = \"wasm32\")".dependencies.wasm-bindgen-futures]
version = "0.4.33"
optional = true
[target."cfg(target_arch = \"wasm32\")".dependencies.gloo-timers]
version = "0.2.6"
features = ["futures"]
[target."cfg(not(target_arch = \"wasm32\"))".dependencies.tokio]
version = "1.24.2"
default-features = false
features = ["rt", "sync", "time"]
[dev-dependencies]
wasm-bindgen-test = "0.3.33"
[dev-dependencies.matrix-sdk-test]
path = "../../testing/matrix-sdk-test/"
version = "0.6.0" My own stripped down [workspace]
members = ["api"]
[workspace.dependencies]
matrix-sdk = { git = "https://github.com/matrix-org/matrix-rust-sdk", rev = "8d83a996a69ffcfca786dbc343dc9b862a9965df", default-features = false, features = [
"e2e-encryption",
"sled",
"rustls-tls",
"markdown",
] } The stripped down [package]
name = "api"
version = "0.1.0"
edition = "2021"
[dependencies]
matrix-sdk = { workspace = true } And finally from the src = craneLib.cleanCargoSource ./.;
commonArgs = rec {
inherit src;
pname = "api";
cargoExtraArgs = "--package ${pname}";
version = "0.1.0";
buildInputs =
[
pkgs.sqlite
]
++ lib.optionals pkgs.stdenv.isDarwin [
pkgs.libiconv
];
};
cargoArtifacts = craneLib.buildDepsOnly commonArgs;
api = craneLib.buildPackage (commonArgs
// {
inherit cargoArtifacts;
}); |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Quick question: is your Normally when running cargo outside of nix it can pull down git deps even if they have not been committed to the Cargo.lock file. But if the git dependency is not listed there |
Beta Was this translation helpful? Give feedback.
-
Update: I tried out this PR (#265) which seems to have worked. Based on this, it looks like the issue was related to information inherited from the workspace in |
Beta Was this translation helpful? Give feedback.
Update: I tried out this PR (#265) which seems to have worked. Based on this, it looks like the issue was related to information inherited from the workspace in
target
block.