mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-22 16:25:30 +00:00
Basic bin+lib setup
This commit is contained in:
6
tokenizers/Cargo.lock
generated
Normal file
6
tokenizers/Cargo.lock
generated
Normal 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
15
tokenizers/Cargo.toml
Normal 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
7
tokenizers/src/cli.rs
Normal 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
3
tokenizers/src/lib.rs
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
pub fn test() {
|
||||||
|
println!("Test");
|
||||||
|
}
|
Reference in New Issue
Block a user