Create cargo workspace
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
81e187fc7d
commit
0899df47a5
7 changed files with 46 additions and 6 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
|
@ -5,3 +5,7 @@ version = 3
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "plaixt"
|
name = "plaixt"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "plaixt-core"
|
||||||
|
version = "0.0.0"
|
||||||
|
|
|
||||||
12
Cargo.toml
12
Cargo.toml
|
|
@ -1,8 +1,14 @@
|
||||||
[package]
|
[workspace]
|
||||||
name = "plaixt"
|
members = [
|
||||||
|
"crates/*"
|
||||||
|
]
|
||||||
|
resolver = "2"
|
||||||
|
|
||||||
|
[workspace.package]
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "PLAIn teXT tools for your data"
|
description = "PLAIn teXT tools for your data"
|
||||||
license = "EUPL-1.2"
|
license = "EUPL-1.2"
|
||||||
|
|
||||||
[dependencies]
|
[workspace.metadata.crane]
|
||||||
|
name = "plaixt"
|
||||||
|
|
|
||||||
8
crates/plaixt-core/Cargo.toml
Normal file
8
crates/plaixt-core/Cargo.toml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
[package]
|
||||||
|
name = "plaixt-core"
|
||||||
|
version.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
|
description.workspace = true
|
||||||
|
license.workspace = true
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
14
crates/plaixt-core/src/lib.rs
Normal file
14
crates/plaixt-core/src/lib.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
pub fn add(left: u64, right: u64) -> u64 {
|
||||||
|
left + right
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use super::*;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn it_works() {
|
||||||
|
let result = add(2, 2);
|
||||||
|
assert_eq!(result, 4);
|
||||||
|
}
|
||||||
|
}
|
||||||
8
crates/plaixt/Cargo.toml
Normal file
8
crates/plaixt/Cargo.toml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
[package]
|
||||||
|
name = "plaixt"
|
||||||
|
version.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
|
description.workspace = true
|
||||||
|
license.workspace = true
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
3
crates/plaixt/src/main.rs
Normal file
3
crates/plaixt/src/main.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
fn main() {
|
||||||
|
println!("Hello, world!");
|
||||||
|
}
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
pub fn get_data() {
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue