Skip to content

Commit

Permalink
bbn: Use workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzuya committed Jan 20, 2023
1 parent 7dde25e commit 4ba697b
Show file tree
Hide file tree
Showing 67 changed files with 33 additions and 31 deletions.
32 changes: 2 additions & 30 deletions bbn/Cargo.toml
@@ -1,30 +1,2 @@
[package]
name = "bbn"
version = "0.35.1"
authors = ["bouzuya <m@bouzuya.net>"]
edition = "2018"

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

[dependencies]
anyhow = "1.0.41"
chrono = "0.4.19"
console = "0.14.1"
date-range = { path = "../date-range/" }
dialoguer = "0.8.0"
diff = "0.1.12"
hatena-blog-api = { git = "https://github.com/bouzuya/rust-hatena-blog-api", tag = "0.1.0" }
nom = "6.1.2"
open = "1.7.0"
serde = { version = "1.0.126", features = ["derive"] }
serde_json = "1.0.64"
sqlx = { version = "0.5.5", features = [ "runtime-tokio-rustls", "sqlite" ] }
structopt = "0.3.21"
thiserror = "1.0.30"
tokio = { version = "1.7.1", features = ["full"] }
xdg = "2.2.0"

[dev-dependencies]
assert_cmd = "1.0.4"
predicates = "2.0.2"
tempfile = "3.2.0"
[workspace]
members = ["crates/*"]
30 changes: 30 additions & 0 deletions bbn/crates/bbn/Cargo.toml
@@ -0,0 +1,30 @@
[package]
name = "bbn"
version = "0.35.1"
authors = ["bouzuya <m@bouzuya.net>"]
edition = "2018"

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

[dependencies]
anyhow = "1.0.41"
chrono = "0.4.19"
console = "0.14.1"
date-range = { path = "../../../date-range/" }
dialoguer = "0.8.0"
diff = "0.1.12"
hatena-blog-api = { git = "https://github.com/bouzuya/rust-hatena-blog-api", tag = "0.1.0" }
nom = "6.1.2"
open = "1.7.0"
serde = { version = "1.0.126", features = ["derive"] }
serde_json = "1.0.64"
sqlx = { version = "0.5.5", features = [ "runtime-tokio-rustls", "sqlite" ] }
structopt = "0.3.21"
thiserror = "1.0.30"
tokio = { version = "1.7.1", features = ["full"] }
xdg = "2.2.0"

[dev-dependencies]
assert_cmd = "1.0.4"
predicates = "2.0.2"
tempfile = "3.2.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.
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.
File renamed without changes.
File renamed without changes.
Expand Up @@ -252,7 +252,7 @@ fn list_posts_day(path: &Path, query: &Query) -> Result<Vec<Post>, ListPostsErro
.file_stem()
.and_then(|s| s.to_str())
.and_then(|s| s.get(8..8 + 2))
.map(|s| OsStr::new(s))
.map(OsStr::new)
{
if query.match_day(day) {
if let Some(date) = path_buf
Expand Down
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.
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.
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.
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 4ba697b

Please sign in to comment.