Skip to content

Commit 5d11901

Browse files
committed
feat: provide workspace structure
1 parent a1c8c20 commit 5d11901

File tree

5 files changed

+35
-29
lines changed

5 files changed

+35
-29
lines changed

Cargo.toml

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,6 @@
1-
[package]
2-
name = "http-server"
3-
version = "0.9.0"
4-
authors = ["Esteban Borai <estebanborai@gmail.com>"]
5-
edition = "2021"
6-
description = "Simple and configurable command-line HTTP server"
7-
repository = "https://github.com/http-server-rs/http-server"
8-
categories = ["web-programming", "web-programming::http-server"]
9-
keywords = ["configurable", "http", "server", "serve", "static"]
10-
license = "MIT OR Apache-2.0"
11-
readme = "README.md"
1+
[workspace]
2+
members = [
3+
"crates/http-server",
4+
]
125

13-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
14-
15-
[[bin]]
16-
name = "http-server"
17-
path = "src/main.rs"
18-
19-
[dependencies]
20-
axum = "0.6.18"
21-
color-eyre = "0.6.2"
22-
clap = { version = "4.2.7", features = ["derive"] }
23-
tokio = { version = "1.28.1", features = ["macros", "rt-multi-thread"] }
24-
25-
[profile.release]
26-
debug = 1
27-
28-
29-
[profile.dev.package.backtrace]
30-
opt-level = 1
6+
default-members = ["crates/http-server"]

crates/http-server/Cargo.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[package]
2+
name = "http-server"
3+
version = "0.9.0"
4+
authors = ["Esteban Borai <estebanborai@gmail.com>"]
5+
edition = "2021"
6+
description = "Simple and configurable command-line HTTP server"
7+
repository = "https://github.com/http-server-rs/http-server"
8+
categories = ["web-programming", "web-programming::http-server"]
9+
keywords = ["configurable", "http", "server", "serve", "static"]
10+
license = "MIT OR Apache-2.0"
11+
readme = "README.md"
12+
13+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
14+
15+
[[bin]]
16+
name = "http-server"
17+
path = "src/main.rs"
18+
19+
[dependencies]
20+
axum = "0.6.18"
21+
color-eyre = "0.6.2"
22+
clap = { version = "4.2.7", features = ["derive"] }
23+
tokio = { version = "1.28.1", features = ["macros", "rt-multi-thread"] }
24+
25+
[profile.release]
26+
debug = 1
27+
28+
29+
[profile.dev.package.backtrace]
30+
opt-level = 1
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)