-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from oscar-project/dev-lib
feat(lib): make oscar-tools available as lib
- Loading branch information
Showing
6 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
[package] | ||
authors = ["Pedro J. Ortiz <[email protected]>", "Julien Abadji <[email protected]>"] | ||
authors = [ | ||
"Pedro J. Ortiz <[email protected]>", | ||
"Julien Abadji <[email protected]>", | ||
] | ||
edition = "2021" | ||
name = "oscar-tools" | ||
version = "0.3.0" | ||
repository = "https://github.com/oscar-project/oscar-tools" | ||
description = "Tools for processing OSCAR Corpora" | ||
license = "Apache-2.0" | ||
|
||
[[bin]] | ||
name = "oscar-tools" | ||
path = "src/main.rs" | ||
|
||
[lib] | ||
name = "oscar_tools" | ||
path = "src/lib.rs" | ||
|
||
[features] | ||
zstd = ["dep:zstd"] | ||
|
||
|
@@ -21,7 +32,7 @@ rayon = "1.5.1" | |
runiq-lib = "1.2.2" | ||
serde_json = "1.0.78" | ||
sha2 = "0.10.1" | ||
zstd = {version="0.11.2", optional=true} | ||
zstd = { version = "0.11.2", optional = true } | ||
walkdir = "2.3.3" | ||
|
||
[dependencies.clap] | ||
|
@@ -49,5 +60,9 @@ ci = ["github"] | |
# The installers to generate for each app | ||
installers = [] | ||
# Target platforms to build apps for (Rust target-triple syntax) | ||
targets = ["x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-pc-windows-msvc", "aarch64-apple-darwin"] | ||
|
||
targets = [ | ||
"x86_64-unknown-linux-gnu", | ||
"x86_64-apple-darwin", | ||
"x86_64-pc-windows-msvc", | ||
"aarch64-apple-darwin", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
mod error; | ||
mod ops; | ||
|
||
pub use ops::Checksum; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters