Split up crate into workspace
This commit is contained in:
parent
07385419a7
commit
6bded59ab6
10 changed files with 51 additions and 20 deletions
11
Cargo.lock
generated
11
Cargo.lock
generated
|
|
@ -454,12 +454,21 @@ checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4"
|
||||||
name = "mark"
|
name = "mark"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap",
|
|
||||||
"image",
|
"image",
|
||||||
"palette",
|
"palette",
|
||||||
"rand",
|
"rand",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "mark-bin"
|
||||||
|
version = "0.0.0"
|
||||||
|
dependencies = [
|
||||||
|
"clap",
|
||||||
|
"image",
|
||||||
|
"mark",
|
||||||
|
"palette",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "memoffset"
|
name = "memoffset"
|
||||||
version = "0.9.0"
|
version = "0.9.0"
|
||||||
|
|
|
||||||
21
Cargo.toml
21
Cargo.toml
|
|
@ -1,10 +1,21 @@
|
||||||
[package]
|
[workspace]
|
||||||
name = "mark"
|
resolver = "2"
|
||||||
|
members = ["mark", "mark-bin"]
|
||||||
|
|
||||||
|
[workspace.package]
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[workspace.dependencies]
|
||||||
clap = { version = "4.3.19", features = ["derive", "deprecated"] }
|
|
||||||
image = "0.24.6"
|
image = "0.24.6"
|
||||||
|
mark.path = "./mark"
|
||||||
palette = "0.7.2"
|
palette = "0.7.2"
|
||||||
rand = { version = "0.8.5", features = ["small_rng"] }
|
|
||||||
|
[workspace.lints]
|
||||||
|
rust.unsafe_code = "forbid"
|
||||||
|
rust.future_incompatible = "warn"
|
||||||
|
rust.rust_2018_idioms = "warn"
|
||||||
|
rust.unused = "warn"
|
||||||
|
rust.noop_method_call = "warn"
|
||||||
|
rust.single_use_lifetimes = "warn"
|
||||||
|
clippy.use_self = "warn"
|
||||||
|
|
|
||||||
10
mark-bin/Cargo.toml
Normal file
10
mark-bin/Cargo.toml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
[package]
|
||||||
|
name = "mark-bin"
|
||||||
|
version.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
clap = { version = "4.3.19", features = ["derive", "deprecated"] }
|
||||||
|
image.workspace = true
|
||||||
|
mark.workspace = true
|
||||||
|
palette.workspace = true
|
||||||
12
mark/Cargo.toml
Normal file
12
mark/Cargo.toml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
[package]
|
||||||
|
name = "mark"
|
||||||
|
version.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
image.workspace = true
|
||||||
|
palette.workspace = true
|
||||||
|
rand = { version = "0.8.5", features = ["small_rng"] }
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
workspace = true
|
||||||
3
mark/src/lib.rs
Normal file
3
mark/src/lib.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
pub mod bw;
|
||||||
|
pub mod dither;
|
||||||
|
mod util;
|
||||||
14
src/lib.rs
14
src/lib.rs
|
|
@ -1,14 +0,0 @@
|
||||||
#![forbid(unsafe_code)]
|
|
||||||
// Rustc lint groups
|
|
||||||
#![warn(future_incompatible)]
|
|
||||||
#![warn(rust_2018_idioms)]
|
|
||||||
#![warn(unused)]
|
|
||||||
// Rustc lints
|
|
||||||
#![warn(noop_method_call)]
|
|
||||||
#![warn(single_use_lifetimes)]
|
|
||||||
// Clippy lints
|
|
||||||
#![warn(clippy::use_self)]
|
|
||||||
|
|
||||||
pub mod bw;
|
|
||||||
pub mod dither;
|
|
||||||
mod util;
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue