forked from obi1kenobi/cargo-semver-checks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test case with infinite importable paths. (obi1kenobi#287)
* Add a test case with infinite importable paths. * Make one more import public. * Make the test crates `publish = false`.
- Loading branch information
1 parent
aaba6b0
commit 5f1e43f
Showing
4 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
publish = false | ||
name = "infinite_importable_paths" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//! This package exports the functions: | ||
//! - `foo` | ||
//! - `nested::foo` | ||
//! - `nested::nested::foo` | ||
//! etc. with arbitrarily many repetitions of `nested` allowed. | ||
//! | ||
//! This package uses a different way of achieving the same thing | ||
//! compared to its variant in the `old` directory. | ||
//! No semver issues should be reported when comparing the two. | ||
mod nested_other { | ||
pub use super::nested; | ||
|
||
pub fn foo() {} | ||
} | ||
|
||
pub mod nested { | ||
pub use crate::nested_other::foo; | ||
|
||
pub use crate::nested_other::nested; | ||
} | ||
|
||
pub use nested::foo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
publish = false | ||
name = "infinite_importable_paths" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//! This package exports the functions: | ||
//! - `foo` | ||
//! - `nested::foo` | ||
//! - `nested::nested::foo` | ||
//! etc. with arbitrarily many repetitions of `nested` allowed. | ||
pub mod nested { | ||
pub use super::nested; | ||
|
||
pub fn foo() {} | ||
} | ||
|
||
pub use nested::foo; |