refac: remove workspace and consumer, add lints
This commit is contained in:
parent
7a90ae9cb1
commit
c5646caa32
10 changed files with 17 additions and 51 deletions
7
Cargo.lock
generated
7
Cargo.lock
generated
|
@ -2,13 +2,6 @@
|
|||
# It is not intended for manual editing.
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "consumer"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"kosmora",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "kosmora"
|
||||
version = "0.1.0"
|
||||
|
|
29
Cargo.toml
29
Cargo.toml
|
@ -1,22 +1,11 @@
|
|||
[workspace]
|
||||
resolver = "2"
|
||||
members = ["consumer", "kosmora"]
|
||||
[package]
|
||||
name = "kosmora"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[profile.dev]
|
||||
rpath = false
|
||||
panic = "abort"
|
||||
lto = "off"
|
||||
opt-level = 0
|
||||
debug = true
|
||||
overflow-checks = false
|
||||
incremental = true
|
||||
codegen-units = 128
|
||||
[dependencies]
|
||||
walkdir = "2.5.0"
|
||||
|
||||
strip = "symbols"
|
||||
debug-assertions = true
|
||||
|
||||
[profile.release]
|
||||
debug-assertions = false
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
panic = "abort"
|
||||
[lints.rust]
|
||||
missing_docs = "allow"
|
||||
unused = "allow"
|
0
arch.txt
0
arch.txt
1
consumer/.gitignore
vendored
1
consumer/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
/target
|
|
@ -1,7 +0,0 @@
|
|||
[package]
|
||||
name = "consumer"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
kosmora = { path = "../kosmora" }
|
|
@ -1,8 +0,0 @@
|
|||
use kosmora::{self, KosmoraINodeInteroperable};
|
||||
use std::path::Path;
|
||||
|
||||
fn main() {
|
||||
let vfs = kosmora::KosmoraVfs::new();
|
||||
let example_path: &Path = &std::path::Path::new(".");
|
||||
example_path.to_kosmora_inode();
|
||||
}
|
1
kosmora/.gitignore
vendored
1
kosmora/.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
/target
|
|
@ -1,7 +0,0 @@
|
|||
[package]
|
||||
name = "kosmora"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
walkdir = "2.5.0"
|
8
src/tests/inode.rs
Normal file
8
src/tests/inode.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
use crate::KosmoraINodeInteroperable;
|
||||
|
||||
#[test]
|
||||
fn create_inode() {
|
||||
let vfs = crate::KosmoraVfs::new();
|
||||
let physical_inode_path: &Path = &std::path::Path::new(".");
|
||||
physical_inode_path.to_kosmora_inode();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue