Skip to content

Commit

Permalink
refac: split into workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
Teajey committed Oct 5, 2024
1 parent 7d0f119 commit 460ece2
Show file tree
Hide file tree
Showing 20 changed files with 59 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/target
tests/markdown_files
crates/json_http/tests/markdown_files/
15 changes: 14 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 3 additions & 27 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,3 @@
[package]
name = "custard"
version = "0.3.1"
edition = "2021"
license = "MIT"
description = "A frontmatter-querying server"
repository = "https://github.com/Teajey/custard"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[lib]
name = "custard_lib"

[dependencies]
anyhow = "1.0.75"
axum = "0.6.20"
camino = "1.1.6"
chrono = { version = "0.4.31", features = ["serde"] }
notify = "5.2.0"
serde = { version = "1.0.188", features = ["serde_derive"] }
serde_json = "1.0.107"
serde_yaml = "0.9.25"
thiserror = "1.0.49"
tokio = { version = "1.32.0", features = ["full"] }

[dev-dependencies]
pretty_assertions = "1.4.0"
[workspace]
resolver = "2"
members = ["crates/*"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Serves plain-text files from a given directory using basic HTTP. More complex queries can be made for files that contain a Markdown-style frontmatter!
Serves plain-text files from a given directory. More complex queries can be made for files that contain a Markdown-style frontmatter!

Inspired by [Obsidian](https://obsidian.md/), I wanted to make a service to host markdown for my website in a similar manner :^)
20 changes: 20 additions & 0 deletions crates/json_http/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "custard"
version = "0.3.1"
edition = "2021"
license = "MIT"
description = "A frontmatter-querying server"
repository = "https://github.com/Teajey/custard"

[dependencies]
anyhow = "1.0.75"
camino = "1.1.6"
axum = "0.6.20"
custard_lib = { version = "0.1.0", path = "../lib" }
notify = "5.2.0"
serde = { version = "1.0.188", features = ["serde_derive"] }
serde_json = "1.0.107"
tokio = { version = "1.32.0", features = ["full"] }

[dev-dependencies]
pretty_assertions = "1.4.0"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions crates/lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "custard_lib"
version = "0.1.0"
edition = "2021"
license = "MIT"
description = "A core library for Custard"
repository = "https://github.com/Teajey/custard"

[dependencies]
anyhow = "1.0.75"
camino = "1.1.6"
chrono = { version = "0.4.31", features = ["serde"] }
notify = "5.2.0"
serde = { version = "1.0.188", features = ["serde_derive"] }
serde_json = "1.0.107"
serde_yaml = "0.9.25"
thiserror = "1.0.49"

[dev-dependencies]
pretty_assertions = "1.4.0"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 460ece2

Please sign in to comment.