work around carnix workspace issue
Carnix doesn't properly handle includes for workspace members, this works around the issue by specifying what should be generated directly in Cargo.toml. https://nest.pijul.com/pmeunier/carnix/discussions/46
This commit is contained in:
parent
0139cd5621
commit
96639e9d7e
|
@ -112,7 +112,7 @@ rec {
|
|||
version = "0.1.8";
|
||||
authors = [ "Graham Christensen <graham@grahamc.com>" ];
|
||||
edition = "2018";
|
||||
src = include [ "Cargo.toml" "src" "test-srcs" "build.rs" ] ./.;
|
||||
src = include [ "Cargo.toml" "ofborg" ] ./.;
|
||||
workspace_member = "ofborg";
|
||||
build = "build.rs";
|
||||
dependencies = mapFeatures features ([
|
||||
|
@ -192,7 +192,7 @@ rec {
|
|||
version = "0.1.0";
|
||||
authors = [ "Daiderd Jordan <daiderd@gmail.com>" ];
|
||||
edition = "2018";
|
||||
src = include [ "Cargo.toml" " ofborg-simple-build" ] ./.;
|
||||
src = include [ "Cargo.toml" "ofborg-simple-build" ] ./.;
|
||||
workspace_member = "ofborg-simple-build";
|
||||
dependencies = mapFeatures features ([
|
||||
(cratesIO.crates."log"."${deps."ofborg_simple_build"."0.1.0"."log"}" deps)
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
name = "ofborg-simple-build"
|
||||
version = "0.1.0"
|
||||
authors = ["Daiderd Jordan <daiderd@gmail.com>"]
|
||||
include = ["Cargo.toml", "ofborg-simple-build"] # TODO remove when carnix is fixed
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "ofborg"
|
||||
version = "0.1.8"
|
||||
authors = ["Graham Christensen <graham@grahamc.com>"]
|
||||
include = ["Cargo.toml", "src", "test-srcs", "build.rs"]
|
||||
include = ["Cargo.toml", "ofborg"] # TODO remove when carnix is fixed
|
||||
build = "build.rs"
|
||||
edition = "2018"
|
||||
|
||||
|
|
Loading…
Reference in a new issue