Skip to content

Commit bb325ab

Browse files
authored
chore: workspace setup (#75)
* Workspace creation: move mousefood from / to mousefood/ * Cargo.toml: set MSRV to 1.85, following Ratatui
1 parent 4b008e3 commit bb325ab

File tree

11 files changed

+55
-26
lines changed

11 files changed

+55
-26
lines changed

Cargo.toml

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,33 @@
1-
[package]
2-
name = "mousefood"
3-
description = "embedded-graphics backend for Ratatui"
4-
version = "0.2.1"
1+
[workspace]
2+
resolver = "3"
3+
members = ["mousefood"]
4+
5+
[workspace.package]
56
edition = "2024"
7+
rust-version = "1.85"
68
license = "MIT OR Apache-2.0"
79
readme = "README.md"
810
homepage = "https://github.com/j-g00da/mousefood"
911
repository = "https://github.com/j-g00da/mousefood"
1012
keywords = ["embedded-graphics", "ratatui", "tui"]
1113
categories = ["embedded"]
12-
exclude=["/.github", "/assets"]
14+
exclude = ["/.github", "/assets"]
1315

14-
[dependencies]
15-
ratatui-core = { version = "0.1.0-alpha.5", features = ["underline-color"]}
16+
[workspace.dependencies]
17+
ratatui-core = { version = "0.1.0-alpha.5", features = ["underline-color"] }
1618
thiserror = { version = "2.0.12", default-features = false }
1719
embedded-graphics = "0.8.1"
18-
embedded-graphics-simulator = { version = "0.7.0", optional = true }
19-
embedded-graphics-unicodefonts = { version = "0.1.0", optional = true }
20-
weact-studio-epd = { version = "0.1.2", features = ["blocking"], optional = true }
21-
22-
[dev-dependencies]
20+
embedded-graphics-simulator = "0.7.0"
21+
embedded-graphics-unicodefonts = "0.1.0"
22+
weact-studio-epd = { version = "0.1.2", features = ["blocking"] }
2323
ratatui = { version = "0.30.0-alpha.4", default-features = false }
2424
rstest = "0.25.0"
2525
paste = "1.0.15"
2626

27-
[features]
28-
default = ["fonts"]
29-
std = ["thiserror/std", "ratatui-core/std"]
30-
simulator = ["dep:embedded-graphics-simulator"]
31-
fonts = ["dep:embedded-graphics-unicodefonts"]
32-
epd-weact = ["dep:weact-studio-epd"]
33-
34-
[[example]]
35-
name = "simulator"
36-
required-features = ["simulator"]
37-
38-
[lints.rust]
27+
[workspace.lints.rust]
3928
missing_docs = "warn"
4029

41-
[lints.clippy]
30+
[workspace.lints.clippy]
4231
std_instead_of_core = "warn"
4332
std_instead_of_alloc = "warn"
4433
alloc_instead_of_core = "warn"

mousefood/Cargo.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[package]
2+
name = "mousefood"
3+
description = "embedded-graphics backend for Ratatui"
4+
version = "0.2.1"
5+
edition.workspace = true
6+
rust-version.workspace = true
7+
license.workspace = true
8+
readme.workspace = true
9+
homepage.workspace = true
10+
repository.workspace = true
11+
keywords.workspace = true
12+
categories.workspace = true
13+
exclude.workspace = true
14+
15+
[dependencies]
16+
ratatui-core.workspace = true
17+
thiserror.workspace = true
18+
embedded-graphics.workspace = true
19+
embedded-graphics-simulator = { workspace = true, optional = true }
20+
embedded-graphics-unicodefonts = { workspace = true, optional = true }
21+
weact-studio-epd = { workspace = true, optional = true }
22+
23+
[dev-dependencies]
24+
ratatui.workspace = true
25+
rstest.workspace = true
26+
paste.workspace = true
27+
28+
[features]
29+
default = ["fonts"]
30+
std = ["thiserror/std", "ratatui-core/std"]
31+
simulator = ["dep:embedded-graphics-simulator"]
32+
fonts = ["dep:embedded-graphics-unicodefonts"]
33+
epd-weact = ["dep:weact-studio-epd"]
34+
35+
[[example]]
36+
name = "simulator"
37+
required-features = ["simulator"]
38+
39+
[lints]
40+
workspace = true
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/lib.rs renamed to mousefood/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![no_std]
2-
#![doc = include_str!("../README.md")]
2+
#![doc = include_str!("../../README.md")]
33

44
extern crate alloc;
55

File renamed without changes.

0 commit comments

Comments
 (0)