chore: setup Cargo workspace

This commit is contained in:
PoiScript 2019-09-13 21:21:21 +08:00
parent 14de34bc88
commit 77eca42760
47 changed files with 45 additions and 40 deletions

2
.gitignore vendored
View file

@ -2,6 +2,6 @@
**/*.rs.bk
Cargo.lock
benches/*.org
orgize/benches/*.org
.gdb_history
perf.data*

View file

@ -9,7 +9,7 @@ before_script:
script:
- cargo fmt --all -- --check
- cargo test
- cargo test --all
notifications:
email:

View file

@ -1,37 +1,4 @@
[package]
name = "orgize"
version = "0.3.1"
authors = ["PoiScript <poiscript@gmail.com>"]
description = "A Rust library for parsing orgmode files."
repository = "https://github.com/PoiScript/orgize"
readme = "README.md"
edition = "2018"
license = "MIT"
keywords = ["orgmode", "emacs", "parser"]
[package.metadata.docs.rs]
all-features = true
[badges]
travis-ci = { repository = "PoiScript/orgize" }
[features]
default = ["ser"]
ser = ["serde", "serde_indextree"]
[dependencies]
bytecount = "0.6.0"
chrono = { version = "0.4.9", optional = true }
indextree = "4.0.0"
jetscii = "0.4.4"
memchr = "2.2.1"
nom = "5.0.1"
serde = { version = "1.0.100", optional = true, features = ["derive"] }
serde_indextree = { version = "0.2.0", optional = true }
[dev-dependencies]
lazy_static = "1.4.0"
pretty_assertions = "0.6.1"
serde_json = "1.0.40"
slugify = "0.1.0"
syntect = "3.2.1"
[workspace]
members = [
"orgize",
]

37
orgize/Cargo.toml Normal file
View file

@ -0,0 +1,37 @@
[package]
name = "orgize"
version = "0.3.1"
authors = ["PoiScript <poiscript@gmail.com>"]
description = "A Rust library for parsing orgmode files."
repository = "https://github.com/PoiScript/orgize"
readme = "README.md"
edition = "2018"
license = "MIT"
keywords = ["orgmode", "emacs", "parser"]
[package.metadata.docs.rs]
all-features = true
[badges]
travis-ci = { repository = "PoiScript/orgize" }
[features]
default = ["ser"]
ser = ["serde", "serde_indextree"]
[dependencies]
bytecount = "0.6.0"
chrono = { version = "0.4.9", optional = true }
indextree = "4.0.0"
jetscii = "0.4.4"
memchr = "2.2.1"
nom = "5.0.1"
serde = { version = "1.0.100", optional = true, features = ["derive"] }
serde_indextree = { version = "0.2.0", optional = true }
[dev-dependencies]
lazy_static = "1.4.0"
pretty_assertions = "0.6.1"
serde_json = "1.0.40"
slugify = "0.1.0"
syntect = "3.2.1"

1
orgize/README.md Symbolic link
View file

@ -0,0 +1 @@
../README.md

View file

@ -134,7 +134,7 @@ impl Org<'_> {
}
// TableCell is a container but it might
// not contains anything, e.g. `||||||`
Element::TableCell => ()
Element::TableCell => (),
}
}
Ok(())