-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made into workspace, fixed example and a bug with transactions
- Loading branch information
1 parent
8db25be
commit 594f74f
Showing
20 changed files
with
127 additions
and
1,447 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,7 @@ | ||
[package] | ||
name = "atm-machine" | ||
version = "0.1.0" | ||
authors = ["Emil Gardström <[email protected]>"] | ||
[workspace] | ||
members = [ | ||
"atm", | ||
"atm-web", | ||
"examples/basic", | ||
] | ||
|
||
[dependencies] | ||
uuid = { version = "*", features = ["serde", "v4"] } | ||
rand = "*" | ||
rust-argon2 = "*" | ||
chrono = { version = "*", features = ["serde"] } | ||
serde = "*" | ||
serde_derive = "*" | ||
base64 = "*" | ||
error-chain = "*" | ||
slog = "*" | ||
cursive = "*" | ||
diesel = { version = "*", features = ["postgres", "chrono", "uuid"] } | ||
diesel_codegen = { version = "*", features = ["postgres"] } | ||
dotenv = "*" | ||
steel-cent = { path = "steel-cent", features = ["serde_serialize"] } | ||
clippy = {version = "*", optional = true} | ||
byteorder = "*" | ||
|
||
[[example]] | ||
name = "basic" | ||
path = "examples/basic/src/main.rs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[package] | ||
name = "atm-web" | ||
version = "0.1.0" | ||
authors = ["Emil Gardström <[email protected]>"] | ||
|
||
[dependencies] | ||
atm-lib = { path = "../atm"} | ||
diesel = "*" | ||
r2d2 = "*" | ||
r2d2-diesel = "*" | ||
rocket = "*" | ||
rocket_contrib = {version = "*", default-features = false, features = ["json", "tera_templates", "uuid"]} | ||
rocket_codegen = "*" | ||
serde_derive = "*" | ||
serde_json = "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#![feature(plugin)] | ||
#![plugin(rocket_codegen)] | ||
|
||
extern crate atm_lib; | ||
|
||
extern crate diesel; | ||
|
||
extern crate rocket; | ||
extern crate rocket_contrib; | ||
|
||
extern crate r2d2; | ||
extern crate r2d2_diesel; | ||
|
||
#[macro_use] | ||
extern crate serde_derive; | ||
extern crate serde_json; | ||
|
||
fn main() { | ||
println!("Hello, world!"); | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[package] | ||
name = "atm-lib" | ||
version = "0.1.0" | ||
authors = ["Emil Gardström <[email protected]>"] | ||
|
||
[dependencies] | ||
uuid = { version = "*", features = ["serde", "v4"] } | ||
rand = "*" | ||
rust-argon2 = "*" | ||
chrono = { version = "*", features = ["serde"] } | ||
serde = "*" | ||
serde_derive = "*" | ||
base64 = "*" | ||
error-chain = "*" | ||
slog = "*" | ||
cursive = "*" | ||
diesel = { version = "*", features = ["postgres", "chrono", "uuid"] } | ||
diesel_codegen = { version = "*", features = ["postgres"] } | ||
dotenv = "*" | ||
steel-cent = { path = "../steel-cent", features = ["serde_serialize"] } | ||
clippy = {version = "*", optional = true} | ||
byteorder = "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.