Add a common crate

This commit is contained in:
Grégory Burri 2019-08-15 11:28:31 +02:00
parent c77e8d09e7
commit 44826a7edd
11 changed files with 34 additions and 15 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
**/*.rs.bk
key.secret
WebSharper/key
/Cargo.lock

View file

@ -1,15 +1,6 @@
[package]
name = "recipes"
version = "1.0.0"
authors = ["Grégory Burri <greg.burri@gmail.com>"]
edition = "2018"
[dependencies]
actix-web = "1.0"
actix-files = "0.1"
askama = "0.8" # Template system
serde = { version = "1.0", features = ["derive"] }
listenfd = "0.3" # To watch file modifications and automatically launch a build process (only used in dev/debug).
ron = "0.5" # Rust object notation, to load configuration files.
itertools = "0.8"
sqlite = "0.25"
[workspace]
members = [
"backend",
"common",
]

View file

15
backend/Cargo.toml Normal file
View file

@ -0,0 +1,15 @@
[package]
name = "recipes"
version = "1.0.0"
authors = ["Grégory Burri <greg.burri@gmail.com>"]
edition = "2018"
[dependencies]
actix-web = "1.0"
actix-files = "0.1"
askama = "0.8" # Template system
serde = { version = "1.0", features = ["derive"] }
listenfd = "0.3" # To watch file modifications and automatically launch a build process (only used in dev/debug).
ron = "0.5" # Rust object notation, to load configuration files.
itertools = "0.8"
sqlite = "0.25"

9
common/Cargo.toml Normal file
View file

@ -0,0 +1,9 @@
[package]
name = "common"
version = "0.1.0"
authors = ["Grégory Burri <gregory.burri@matisa.ch>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

3
common/src/main.rs Normal file
View file

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}