refac: remove workspace and consumer, add lints

This commit is contained in:
lily 2025-03-29 15:22:49 -04:00
parent 7a90ae9cb1
commit c5646caa32
Signed by: lily
GPG key ID: 601F3263FBCBC4B9
10 changed files with 17 additions and 51 deletions

7
Cargo.lock generated
View file

@ -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"

View file

@ -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"

View file

1
consumer/.gitignore vendored
View file

@ -1 +0,0 @@
/target

View file

@ -1,7 +0,0 @@
[package]
name = "consumer"
version = "0.1.0"
edition = "2024"
[dependencies]
kosmora = { path = "../kosmora" }

View file

@ -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
View file

@ -1 +0,0 @@
/target

View file

@ -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
View 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();
}