Skip to content

Instantly share code, notes, and snippets.

@harshvishu
Last active March 9, 2021 08:42

Revisions

  1. harshvishu revised this gist Mar 9, 2021. 1 changed file with 2 additions and 6 deletions.
    8 changes: 2 additions & 6 deletions Cargo.toml
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,15 @@
    [package]
    name = "blockchain"
    version = "0.1.0"
    authors = ["Your name"]
    authors = ["Harsh Vishwakarma"]
    edition = "2018"

    # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

    [dependencies]
    chrono = { version = " 0.4", features = ["serde"] }
    serde = { version = "1.0.118", features = ["derive"] }
    uuid = { version = "0.8", features = ["serde", "v4"] }
    serde_json = "1.0"
    rocket = "0.4.6"
    reqwest = { version = "0.11", features = ["blocking", "json"] }
    [dependencies.rocket_contrib]
    version = "0.4.6"
    default-features = false
    features = ["json"]
    rocket_contrib = {version = "0.4.6", default-features = false, features = ["json"]}
  2. harshvishu revised this gist Mar 4, 2021. 1 changed file with 0 additions and 5 deletions.
    5 changes: 0 additions & 5 deletions Chain.rs
    Original file line number Diff line number Diff line change
    @@ -1,5 +0,0 @@
    pub struct Chain {
    chain: Vec<Block>,
    current_transactions: Vec<Transaction>,
    nodes: HashSet<String>,
    }
  3. harshvishu revised this gist Mar 4, 2021. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions Chain.rs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    pub struct Chain {
    chain: Vec<Block>,
    current_transactions: Vec<Transaction>,
    nodes: HashSet<String>,
    }
  4. harshvishu created this gist Feb 18, 2021.
    19 changes: 19 additions & 0 deletions Cargo.toml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    [package]
    name = "blockchain"
    version = "0.1.0"
    authors = ["Your name"]
    edition = "2018"

    # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

    [dependencies]
    chrono = { version = " 0.4", features = ["serde"] }
    serde = { version = "1.0.118", features = ["derive"] }
    uuid = { version = "0.8", features = ["serde", "v4"] }
    serde_json = "1.0"
    rocket = "0.4.6"
    reqwest = { version = "0.11", features = ["blocking", "json"] }
    [dependencies.rocket_contrib]
    version = "0.4.6"
    default-features = false
    features = ["json"]