Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Add Cargo Project Skeleton
Browse files Browse the repository at this point in the history
See #1
  • Loading branch information
rtsisyk committed Oct 3, 2018
1 parent 8b6d9f1 commit cafb5d4
Show file tree
Hide file tree
Showing 23 changed files with 213 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
*~
*/src/Cargo.lock
target/
1 change: 1 addition & 0 deletions .rustfmt.toml
@@ -0,0 +1 @@
hard_tabs = false
54 changes: 54 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions Cargo.toml
@@ -0,0 +1,34 @@
[package]
name = "stegos"
version = "0.1.0"
authors = ["Stegos AG <info@stegos.cc>"]

[[bin]]
name = "stegos"
path = "src/stegos.rs"

[workspace]
members = [
"api",
"blockchain",
"consensus",
"crypto",
"keychain",
"network",
"runtime",
"storage",
"tx"
]

[dependencies]
stegos_api = { path = "./api" }
stegos_blockchain = { path = "./blockchain" }
stegos_consensus = { path = "./consensus" }
stegos_crypto = { path = "./crypto" }
stegos_keychain = { path = "./keychain" }
stegos_network = { path = "./network" }
stegos_runtime = { path = "./runtime" }
stegos_storage = { path = "./storage" }
stegos_tx = { path = "./tx" }

[build-dependencies]
6 changes: 6 additions & 0 deletions api/Cargo.toml
@@ -0,0 +1,6 @@
[package]
name = "stegos_api"
version = "0.1.0"
authors = ["Stegos AG <info@stegos.cc>"]

[dependencies]
7 changes: 7 additions & 0 deletions api/src/lib.rs
@@ -0,0 +1,7 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}
7 changes: 7 additions & 0 deletions blockchain/Cargo.toml
@@ -0,0 +1,7 @@
[package]
name = "stegos_blockchain"
version = "0.1.0"
authors = ["Stegos AG <info@stegos.cc>"]

[dependencies]
stegos_keychain = { path = "../keychain" }
7 changes: 7 additions & 0 deletions blockchain/src/lib.rs
@@ -0,0 +1,7 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}
6 changes: 6 additions & 0 deletions consensus/Cargo.toml
@@ -0,0 +1,6 @@
[package]
name = "stegos_consensus"
version = "0.1.0"
authors = ["Stegos AG <info@stegos.cc>"]

[dependencies]
7 changes: 7 additions & 0 deletions consensus/src/lib.rs
@@ -0,0 +1,7 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}
6 changes: 6 additions & 0 deletions crypto/Cargo.toml
@@ -0,0 +1,6 @@
[package]
name = "stegos_crypto"
version = "0.1.0"
authors = ["Stegos AG <info@stegos.cc>"]

[dependencies]
7 changes: 7 additions & 0 deletions crypto/src/lib.rs
@@ -0,0 +1,7 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}
6 changes: 6 additions & 0 deletions keychain/Cargo.toml
@@ -0,0 +1,6 @@
[package]
name = "stegos_keychain"
version = "0.1.0"
authors = ["Stegos AG <info@stegos.cc>"]

[dependencies]
7 changes: 7 additions & 0 deletions keychain/src/lib.rs
@@ -0,0 +1,7 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}
6 changes: 6 additions & 0 deletions network/Cargo.toml
@@ -0,0 +1,6 @@
[package]
name = "stegos_network"
version = "0.1.0"
authors = ["Stegos AG <info@stegos.cc>"]

[dependencies]
7 changes: 7 additions & 0 deletions network/src/lib.rs
@@ -0,0 +1,7 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}
6 changes: 6 additions & 0 deletions runtime/Cargo.toml
@@ -0,0 +1,6 @@
[package]
name = "stegos_runtime"
version = "0.1.0"
authors = ["Stegos AG <info@stegos.cc>"]

[dependencies]
7 changes: 7 additions & 0 deletions runtime/src/lib.rs
@@ -0,0 +1,7 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}
3 changes: 3 additions & 0 deletions src/stegos.rs
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}
6 changes: 6 additions & 0 deletions storage/Cargo.toml
@@ -0,0 +1,6 @@
[package]
name = "stegos_storage"
version = "0.1.0"
authors = ["Stegos AG <info@stegos.cc>"]

[dependencies]
7 changes: 7 additions & 0 deletions storage/src/lib.rs
@@ -0,0 +1,7 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}
6 changes: 6 additions & 0 deletions tx/Cargo.toml
@@ -0,0 +1,6 @@
[package]
name = "stegos_tx"
version = "0.1.0"
authors = ["Stegos AG <info@stegos.cc>"]

[dependencies]
7 changes: 7 additions & 0 deletions tx/src/lib.rs
@@ -0,0 +1,7 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}

0 comments on commit cafb5d4

Please sign in to comment.