Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
irh committed Apr 17, 2023
1 parent 9ff1a61 commit 2241927
Show file tree
Hide file tree
Showing 15 changed files with 45 additions and 35 deletions.
12 changes: 7 additions & 5 deletions tests/rust/dep_v2/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/rust/dep_v2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ authors = ["cbindgen"]
edition = "2018"

[dependencies]
dep = { path = "dep" }
dep-2-dep = { path = "dep" }
2 changes: 1 addition & 1 deletion tests/rust/dep_v2/cbindgen.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[parse]
parse_deps = true
include = ["dep"]
include = ["dep-2-dep"]
2 changes: 1 addition & 1 deletion tests/rust/dep_v2/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use dep::dep_struct;
use dep_2_dep::dep_struct;

#[no_mangle]
pub unsafe extern "C" fn get_x(dep_struct: *const dep_struct) -> u32 {
Expand Down
5 changes: 3 additions & 2 deletions tests/rust/expand_default_features/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions tests/rust/expand_dep_v2/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/rust/expand_dep_v2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ edition = "2018"

[dependencies]
expand-dep = { path = "../expand_dep" }
dep = { path = "dep_v2" }
expand-dep-2-dep-2 = { path = "dep_v2" }
5 changes: 3 additions & 2 deletions tests/rust/expand_features/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions tests/rust/expand_no_default_features/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/rust/external_workspace_child/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ version = "0.1.0"
authors = ["cbindgen"]
workspace = "../workspace"

[dependencies.dep]
[dependencies.workspace-dep]
path = "../workspace/dep"
2 changes: 1 addition & 1 deletion tests/rust/external_workspace_child/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extern crate dep;
extern crate workspace_dep;

#[no_mangle]
pub extern "C" fn consume_ext(_ext: dep::ExtType) {
Expand Down
10 changes: 6 additions & 4 deletions tests/rust/literal_target/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/rust/literal_target/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ version = "0.1.0"
authors = ["cbindgen"]

[target.x86_64-pc-windows-gnu.dependencies]
dep = { path = "../workspace/dep" }
workspace-dep = { path = "../workspace/dep" }
13 changes: 7 additions & 6 deletions tests/rust/workspace/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/rust/workspace/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "workspace"
version = "0.1.0"
authors = ["cbindgen"]

[dependencies.dep]
[dependencies.workspace-dep]
path = "dep"

[workspace]
Expand Down

0 comments on commit 2241927

Please sign in to comment.