Move API into it's own crate

This commit is contained in:
Nadja Reitzenstein 2021-10-27 23:42:44 +02:00
parent 00077a7510
commit 4e60b5d767
6 changed files with 18 additions and 2 deletions

2
.gitmodules vendored
View File

@ -1,4 +1,4 @@
[submodule "schema"]
path = schema
path = api/schema
url = https://gitlab.com/fabinfra/fabaccess/fabaccess-api
branch = main

View File

@ -87,4 +87,4 @@ tempfile = "3.2"
bincode = "1.3"
[workspace]
members = ["modules/*"]
members = ["modules/*", "api"]

8
api/Cargo.toml Normal file
View File

@ -0,0 +1,8 @@
[package]
name = "api"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

View File

8
api/src/lib.rs Normal file
View File

@ -0,0 +1,8 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
let result = 2 + 2;
assert_eq!(result, 4);
}
}