Moved core to a separate crate

This commit is contained in:
Natty 2023-02-18 00:42:50 +01:00
parent 3e2849929d
commit 2e28fdc276
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
7 changed files with 22 additions and 8 deletions

4
Cargo.lock generated
View File

@ -30,6 +30,10 @@ checksum = "fad582f4b9e86b6caa621cabeb0963332d92eea04729ab12892c2533951e6440"
[[package]]
name = "magnetar"
version = "0.1.0"
[[package]]
name = "magnetar_core"
version = "0.1.0"
dependencies = [
"serde",
"serde_json",

View File

@ -3,8 +3,8 @@ name = "magnetar"
version = "0.1.0"
edition = "2021"
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
url = { version = "2.3", features = ["serde"] }
[workspace]
members = [
".",
"core"
]

13
core/Cargo.toml Normal file
View File

@ -0,0 +1,13 @@
[package]
name = "magnetar_core"
version = "0.1.0"
license = "APGL"
edition = "2021"
[lib]
crate-type = ["rlib"]
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
url = { version = "2.3", features = ["serde"] }

View File

@ -1,6 +1,3 @@
#[forbid(unsafe_code)]
mod web_model;
fn main() {
println!("Hello, world!");
}