Skip to content

Commit

Permalink
fix: name for libraries and test cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalpharush authored and smoelius committed Jan 16, 2025
1 parent 64a8b4c commit e3f6ec6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
/line-test.db
.DS_Store
6 changes: 3 additions & 3 deletions src/db/build/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ fn package_crates() -> Result<PackageCrateMap<()>> {
let mut package_crates = PackageCrateMap::default();
for package in metadata.packages {
for target in package.targets {
let krate = if target.test && package.name != target.name {
Some(target.name)
} else if target.is_bin() {
let krate = if target.is_bin() {
Some(format!("bin:{}", target.name))
} else if target.is_lib() {
Some(String::from("lib"))
} else if target.is_test() {
Some(target.name)
} else {
None
};
Expand Down

0 comments on commit e3f6ec6

Please sign in to comment.