Skip to content

Commit 939e874

Browse files
committed
🚚 Move colorsaurus to crates/
1 parent 57cae76 commit 939e874

33 files changed

+64
-55
lines changed

.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build]
2+
rustflags = ["--cfg", "terminal_colorsaurus_in_tree"]
3+
rustdocflags = ["--cfg", "terminal_colorsaurus_in_tree"]

Cargo.toml

Lines changed: 4 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,6 @@
1-
[package]
2-
name = "terminal-colorsaurus"
3-
description = "Determines the background and foreground color of the terminal"
4-
readme = "readme.md"
5-
repository = "https://github.com/bash/terminal-colorsaurus"
6-
categories = ["command-line-interface"]
7-
keywords = ["terminal", "light", "dark", "color-scheme", "cli"]
8-
license = "MIT OR Apache-2.0"
9-
version = "0.4.4"
10-
edition = "2021"
11-
rust-version = "1.70.0" # Search for `FIXME(msrv)` when bumping.
12-
exclude = [".github", ".gitignore", "*.sh", "benchmark/**/*", "doc/issues.md", "deny.toml"]
13-
14-
[dependencies]
15-
rgb = { version = "0.8.37", optional = true }
16-
anstyle = { version = "1.0.7", optional = true }
17-
cfg-if = "1.0.0"
18-
19-
[target.'cfg(unix)'.dependencies]
20-
memchr = "2.7.1"
21-
mio = { version = "1", features = ["os-ext"], default-features = false }
22-
terminal-trx = "0.2.3"
23-
24-
[target.'cfg(target_os = "macos")'.dependencies]
25-
libc = "0.2.151"
26-
27-
[target.'cfg(windows)'.dependencies]
28-
memchr = "2.7.1"
29-
terminal-trx = "0.2.3"
30-
windows-sys = { version = "0.59.0", features = ["Win32_System_Threading"] } # Keep this in sync with terminal-trx's version to avoid duplicate deps.
31-
32-
[lints.rust]
33-
missing_debug_implementations = "warn"
34-
missing_docs = "warn"
35-
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(terminal_colorsaurus_test_unsupported)"] }
36-
37-
[lints.clippy]
38-
dbg_macro = "warn"
39-
exhaustive_enums = "warn"
40-
exhaustive_structs = "warn"
41-
undocumented_unsafe_blocks = "deny"
42-
unimplemented = "warn"
43-
uninlined_format_args = "warn"
44-
unnested_or_patterns = "warn"
45-
unwrap_used = "deny"
46-
use_debug = "warn"
47-
48-
[package.metadata.docs.rs]
49-
all-features = true
50-
511
[workspace]
52-
members = ["crates/*","examples/*"]
2+
members = ["crates/*"]
533
resolver = "2"
4+
5+
[workspace.dependencies]
6+
terminal-colorsaurus = { path = "crates/terminal-colorsaurus" }

examples/benchmark/Cargo.toml renamed to crates/benchmark/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ version = "1.0.0"
77
clap = { version = "4.4", features = ["derive"] }
88
anstyle = "1.0.8"
99
indicatif = "0.17.7"
10-
terminal-colorsaurus = { path = "../.." }
10+
terminal-colorsaurus.workspace = true
File renamed without changes.

crates/pycolorsaurus/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ crate-type = ["cdylib"]
1010

1111
[dependencies]
1212
pyo3 = "0.22.0"
13-
terminal-colorsaurus = { path = "../.." }
13+
terminal-colorsaurus.workspace = true
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[package]
2+
name = "terminal-colorsaurus"
3+
description = "Determines the background and foreground color of the terminal"
4+
readme = "../../readme.md"
5+
repository = "https://github.com/bash/terminal-colorsaurus"
6+
categories = ["command-line-interface"]
7+
keywords = ["terminal", "light", "dark", "color-scheme", "cli"]
8+
license = "MIT OR Apache-2.0"
9+
version = "0.4.4"
10+
edition = "2021"
11+
rust-version = "1.70.0" # Search for `FIXME(msrv)` when bumping.
12+
exclude = [".github", ".gitignore", "*.sh", "benchmark/**/*", "doc/issues.md", "deny.toml"]
13+
14+
[dependencies]
15+
rgb = { version = "0.8.37", optional = true }
16+
anstyle = { version = "1.0.7", optional = true }
17+
cfg-if = "1.0.0"
18+
19+
[target.'cfg(unix)'.dependencies]
20+
memchr = "2.7.1"
21+
mio = { version = "1", features = ["os-ext"], default-features = false }
22+
terminal-trx = "0.2.3"
23+
24+
[target.'cfg(target_os = "macos")'.dependencies]
25+
libc = "0.2.151"
26+
27+
[target.'cfg(windows)'.dependencies]
28+
memchr = "2.7.1"
29+
terminal-trx = "0.2.3"
30+
windows-sys = { version = "0.59.0", features = ["Win32_System_Threading"] } # Keep this in sync with terminal-trx's version to avoid duplicate deps.
31+
32+
[lints.rust]
33+
missing_debug_implementations = "warn"
34+
missing_docs = "warn"
35+
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(terminal_colorsaurus_test_unsupported)"] }
36+
37+
[lints.clippy]
38+
dbg_macro = "warn"
39+
exhaustive_enums = "warn"
40+
exhaustive_structs = "warn"
41+
undocumented_unsafe_blocks = "deny"
42+
unimplemented = "warn"
43+
uninlined_format_args = "warn"
44+
unnested_or_patterns = "warn"
45+
unwrap_used = "deny"
46+
use_debug = "warn"
47+
48+
[package.metadata.docs.rs]
49+
all-features = true
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../doc/feature-detection.md
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../doc/latency-rustdoc.md
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../doc/terminal-survey.md

0 commit comments

Comments
 (0)