Basic bin+lib setup

This commit is contained in:
Anthony MOI
2019-11-01 13:54:17 -04:00
parent b9b519c84a
commit 2b72a5737f
4 changed files with 31 additions and 0 deletions

6
tokenizers/Cargo.lock generated Normal file
View File

@ -0,0 +1,6 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
name = "tokenizers"
version = "0.1.0"

15
tokenizers/Cargo.toml Normal file
View File

@ -0,0 +1,15 @@
[package]
name = "tokenizers"
version = "0.1.0"
authors = ["Anthony MOI <m.anthony.moi@gmail.com>"]
edition = "2018"
[lib]
name = "tokenizers"
path = "src/lib.rs"
[[bin]]
name = "cli"
path = "src/cli.rs"
[dependencies]

7
tokenizers/src/cli.rs Normal file
View File

@ -0,0 +1,7 @@
/// This is the CLI binary for the Tokenizers project
use tokenizers::test;
fn main() {
println!("Hello, world!");
test();
}

3
tokenizers/src/lib.rs Normal file
View File

@ -0,0 +1,3 @@
pub fn test() {
println!("Test");
}