├── .hcignore ├── .gitignore ├── zomes └── tasks │ ├── zome.json │ └── code │ ├── .build │ ├── Cargo.toml │ ├── src │ └── lib.rs │ └── Cargo.lock ├── app.json ├── test ├── package.json ├── webpack.config.js ├── index.js └── README.md └── LICENSE /.hcignore: -------------------------------------------------------------------------------- 1 | dist 2 | test 3 | bundle.json 4 | README.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | node_modules/ 3 | target/ 4 | 5 | -------------------------------------------------------------------------------- /zomes/tasks/zome.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Zome for the creation and listing of tasks" 3 | } -------------------------------------------------------------------------------- /zomes/tasks/code/.build: -------------------------------------------------------------------------------- 1 | { 2 | "steps": { 3 | "cargo": [ 4 | "build", 5 | "--release", 6 | "--target=wasm32-unknown-unknown" 7 | ] 8 | }, 9 | "artifact": "target/wasm32-unknown-unknown/release/tasks.wasm" 10 | } -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Tasktaskic", 3 | "description": "A little todo app", 4 | "authors": [ 5 | { 6 | "indentifier": "Connor Turland ", 7 | "public_key_source": "", 8 | "signature": "" 9 | } 10 | ], 11 | "version": "0.1.0", 12 | "dht": {}, 13 | "properties": null 14 | } -------------------------------------------------------------------------------- /test/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "devDependencies": { 3 | "@babel/core": "^7.0.0", 4 | "@babel/plugin-proposal-object-rest-spread": "^7.0.0", 5 | "@babel/preset-env": "^7.0.0", 6 | "babel-loader": "^8.0.0", 7 | "webpack": "^4.17.1", 8 | "webpack-cli": "^3.1.0" 9 | }, 10 | "dependencies": { 11 | "tape": "^4.9.1", 12 | "json3": "*", 13 | "faucet": "0.0.1" 14 | }, 15 | "scripts": { 16 | "build": "webpack", 17 | "watch": "webpack --watch" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /zomes/tasks/code/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "tasks" 3 | version = "0.1.0" 4 | authors = ["Connor Turland "] 5 | edition = "2018" 6 | [dependencies] 7 | serde = "1.0" 8 | serde_json = "1.0" 9 | serde_derive = "1.0" 10 | hdk = { git = "https://github.com/holochain/holochain-rust" , branch = "master" } 11 | holochain_wasm_utils = { git = "https://github.com/holochain/holochain-rust" , branch = "master" } 12 | [lib] 13 | path = "src/lib.rs" 14 | crate-type = ["cdylib"] 15 | -------------------------------------------------------------------------------- /test/webpack.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | 3 | module.exports = { 4 | entry: './index.js', 5 | output: { 6 | path: path.resolve(__dirname, 'dist'), 7 | filename: 'bundle.js' 8 | }, 9 | mode: 'production', 10 | module: { 11 | rules: [ 12 | { 13 | test: /\.js$/, 14 | exclude: /(node_modules|bower_components)/, 15 | use: { 16 | loader: "babel-loader", 17 | options: { 18 | presets: ["@babel/preset-env"] 19 | } 20 | } 21 | } 22 | ] 23 | }, 24 | stats: 'minimal', 25 | node: { 26 | fs: 'empty', 27 | setImmediate: false 28 | } 29 | }; 30 | -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- 1 | // This test file uses the tape testing framework. 2 | // To learn more, go here: https://github.com/substack/tape 3 | const test = require('tape'); 4 | 5 | // instantiate an app from the DNA JSON bundle 6 | const app = Container.loadAndInstantiate("dist/bundle.json") 7 | 8 | // activate the new instance 9 | app.start() 10 | 11 | test('can create a task', (t) => { 12 | t.plan(1) 13 | const input = JSON.stringify({ 14 | text: "my first thing to do" 15 | }) 16 | const result = app.call("tasks", "main", "create_task", input) 17 | t.equal(result, JSON.stringify({ address: "QmSHW6f4xnePuBf55kWwBFc5srtNGv98k9LuMB8xBoRq5Z" })) 18 | }) 19 | 20 | test('can list tasks', (t) => { 21 | t.plan(1) 22 | const input = JSON.stringify({}) 23 | const result = app.call("tasks", "main", "list_tasks", input) 24 | const parsed = JSON.parse(result) 25 | const expected = { 26 | text: "my first thing to do", 27 | complete: false 28 | } 29 | t.deepEqual(parsed[0], expected) 30 | }) 31 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Holochain 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /test/README.md: -------------------------------------------------------------------------------- 1 | # js-tests-scaffold 2 | 3 | This is a recommended configuration for developing tests for Holochain DNA packages. The point of these files are to write tests that can successfully run within the [`hcshell`](https://github.com/holochain/holosqape#hcshell) Holochain container environment. 4 | 5 | It currently includes webpack in its configuration because the javascript execution environment in the [`hcshell`](https://github.com/holochain/holosqape#hcshell) container does not support full ES6 Javascript. 6 | In terms of syntax, ES5 is safe, but check the [QJSEngine documentation](http://doc.qt.io/qt-5/qtqml-javascript-functionlist.html) to be completely sure of syntax compatibility. 7 | 8 | To get proper assertions and formatted output we want to use existing JS scripting frameworks. The configuration currently uses [tape](https://github.com/substack/tape) as a testing framework. We chose Tape for now because of its minimal footprint. 9 | 10 | These files are included into the `test` folder of any new DNA source code that is started using `hc init`. 11 | 12 | Dependencies are installed by running `npm install`. 13 | 14 | Javascript build step is done by running `npm run build`. This places a new file called `bundle.js` within a `dist` folder, within this folder. 15 | 16 | Note that those steps are performed automatically by `hc test`. 17 | 18 | **Note about default configuration with TAPE testing**: If you use this default configuration with Tape for testing, to get an improved CLI visual output (with colors! and accurate exit codes), we recommend adjusting the command you use to run tests as follows: 19 | ``` 20 | hc test | test/node_modules/faucet/bin/cmd.js 21 | ``` 22 | 23 | ## Webpack config 24 | If you create your own testing project and you want to use Webpack for bundling make sure to set the following node parameters to have the output run in `hcshell` JS engine: 25 | 26 | ``` 27 | node: { 28 | fs: 'empty', 29 | setImmediate: false 30 | } 31 | ``` 32 | -------------------------------------------------------------------------------- /zomes/tasks/code/src/lib.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] 2 | extern crate hdk; 3 | extern crate serde; 4 | #[macro_use] 5 | extern crate serde_derive; 6 | #[macro_use] 7 | extern crate serde_json; 8 | 9 | use hdk::{ 10 | error::ZomeApiError, 11 | holochain_core_types::hash::HashString, 12 | holochain_dna::zome::entry_types::Sharing, 13 | }; 14 | 15 | #[derive(Serialize, Deserialize)] 16 | pub struct Task { 17 | text: String, 18 | complete: bool, 19 | } 20 | 21 | fn handle_create_task(text: String) -> serde_json::Value { 22 | let maybe_address = hdk::commit_entry("task", json!({ 23 | "text": text, 24 | "complete": false 25 | })); 26 | match maybe_address { 27 | Ok(address) => { 28 | let link_result = hdk::link_entries( 29 | &HashString::from(hdk::AGENT_ADDRESS.to_string()), 30 | &address, 31 | "has tasks" 32 | ); 33 | 34 | if link_result.is_err() { 35 | return json!({"link error": link_result.err().unwrap()}) 36 | } 37 | 38 | json!({"address": address}) 39 | } 40 | Err(hdk_error) => hdk_error.to_json(), 41 | } 42 | } 43 | 44 | pub fn handle_list_tasks() -> serde_json::Value { 45 | match hdk::get_links(&hdk::AGENT_ADDRESS, "has tasks") { 46 | Ok(result) => { 47 | let mut tasks: Vec = Vec::with_capacity(result.links.len()); 48 | for address in result.links { 49 | let result : Result, ZomeApiError> = hdk::get_entry(address); 50 | match result { 51 | Ok(Some(task)) => tasks.push(task), 52 | Ok(None) => {}, 53 | Err(_) => {}, 54 | } 55 | } 56 | json!(tasks) 57 | }, 58 | Err(hdk_error) => hdk_error.to_json(), 59 | } 60 | } 61 | 62 | define_zome! { 63 | entries: [ 64 | entry!( 65 | name: "task", 66 | description: "a thing to do", 67 | sharing: Sharing::Public, 68 | native_type: Task, 69 | 70 | validation_package: || { 71 | hdk::ValidationPackageDefinition::Entry 72 | }, 73 | 74 | validation: |task: Task, _ctx: hdk::ValidationData| { 75 | Ok(()) 76 | } 77 | ) 78 | ] 79 | 80 | genesis: || { 81 | Ok(()) 82 | } 83 | 84 | functions: { 85 | main (Public) { 86 | create_task: { 87 | inputs: |text: String|, 88 | outputs: |address: serde_json::Value|, 89 | handler: handle_create_task 90 | } 91 | 92 | list_tasks: { 93 | inputs: | |, 94 | outputs: |tasks: serde_json::Value|, 95 | handler: handle_list_tasks 96 | } 97 | } 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /zomes/tasks/code/Cargo.lock: -------------------------------------------------------------------------------- 1 | [[package]] 2 | name = "arrayref" 3 | version = "0.3.5" 4 | source = "registry+https://github.com/rust-lang/crates.io-index" 5 | 6 | [[package]] 7 | name = "base64" 8 | version = "0.9.3" 9 | source = "registry+https://github.com/rust-lang/crates.io-index" 10 | dependencies = [ 11 | "byteorder 1.2.7 (registry+https://github.com/rust-lang/crates.io-index)", 12 | "safemem 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 13 | ] 14 | 15 | [[package]] 16 | name = "bitflags" 17 | version = "1.0.4" 18 | source = "registry+https://github.com/rust-lang/crates.io-index" 19 | 20 | [[package]] 21 | name = "block-buffer" 22 | version = "0.3.3" 23 | source = "registry+https://github.com/rust-lang/crates.io-index" 24 | dependencies = [ 25 | "arrayref 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 26 | "byte-tools 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 27 | ] 28 | 29 | [[package]] 30 | name = "byte-tools" 31 | version = "0.2.0" 32 | source = "registry+https://github.com/rust-lang/crates.io-index" 33 | 34 | [[package]] 35 | name = "byteorder" 36 | version = "1.2.7" 37 | source = "registry+https://github.com/rust-lang/crates.io-index" 38 | 39 | [[package]] 40 | name = "cfg-if" 41 | version = "0.1.6" 42 | source = "registry+https://github.com/rust-lang/crates.io-index" 43 | 44 | [[package]] 45 | name = "crunchy" 46 | version = "0.1.6" 47 | source = "registry+https://github.com/rust-lang/crates.io-index" 48 | 49 | [[package]] 50 | name = "digest" 51 | version = "0.7.6" 52 | source = "registry+https://github.com/rust-lang/crates.io-index" 53 | dependencies = [ 54 | "generic-array 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 55 | ] 56 | 57 | [[package]] 58 | name = "either" 59 | version = "1.5.0" 60 | source = "registry+https://github.com/rust-lang/crates.io-index" 61 | 62 | [[package]] 63 | name = "fake-simd" 64 | version = "0.1.2" 65 | source = "registry+https://github.com/rust-lang/crates.io-index" 66 | 67 | [[package]] 68 | name = "fuchsia-zircon" 69 | version = "0.3.3" 70 | source = "registry+https://github.com/rust-lang/crates.io-index" 71 | dependencies = [ 72 | "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", 73 | "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 74 | ] 75 | 76 | [[package]] 77 | name = "fuchsia-zircon-sys" 78 | version = "0.3.3" 79 | source = "registry+https://github.com/rust-lang/crates.io-index" 80 | 81 | [[package]] 82 | name = "futures-async-runtime-preview" 83 | version = "0.2.3" 84 | source = "registry+https://github.com/rust-lang/crates.io-index" 85 | dependencies = [ 86 | "futures-core-preview 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 87 | "futures-stable-preview 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 88 | ] 89 | 90 | [[package]] 91 | name = "futures-channel-preview" 92 | version = "0.2.2" 93 | source = "registry+https://github.com/rust-lang/crates.io-index" 94 | dependencies = [ 95 | "futures-core-preview 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 96 | ] 97 | 98 | [[package]] 99 | name = "futures-core-preview" 100 | version = "0.2.3" 101 | source = "registry+https://github.com/rust-lang/crates.io-index" 102 | dependencies = [ 103 | "either 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)", 104 | ] 105 | 106 | [[package]] 107 | name = "futures-executor-preview" 108 | version = "0.2.2" 109 | source = "registry+https://github.com/rust-lang/crates.io-index" 110 | dependencies = [ 111 | "futures-channel-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 112 | "futures-core-preview 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 113 | "futures-util-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 114 | "lazy_static 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 115 | "num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 116 | ] 117 | 118 | [[package]] 119 | name = "futures-io-preview" 120 | version = "0.2.2" 121 | source = "registry+https://github.com/rust-lang/crates.io-index" 122 | dependencies = [ 123 | "futures-core-preview 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 124 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 125 | ] 126 | 127 | [[package]] 128 | name = "futures-preview" 129 | version = "0.2.2" 130 | source = "registry+https://github.com/rust-lang/crates.io-index" 131 | dependencies = [ 132 | "futures-async-runtime-preview 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 133 | "futures-channel-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 134 | "futures-core-preview 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 135 | "futures-executor-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 136 | "futures-io-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 137 | "futures-sink-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 138 | "futures-stable-preview 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 139 | "futures-util-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 140 | ] 141 | 142 | [[package]] 143 | name = "futures-sink-preview" 144 | version = "0.2.2" 145 | source = "registry+https://github.com/rust-lang/crates.io-index" 146 | dependencies = [ 147 | "either 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)", 148 | "futures-channel-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 149 | "futures-core-preview 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 150 | ] 151 | 152 | [[package]] 153 | name = "futures-stable-preview" 154 | version = "0.2.3" 155 | source = "registry+https://github.com/rust-lang/crates.io-index" 156 | dependencies = [ 157 | "futures-core-preview 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 158 | "futures-executor-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 159 | ] 160 | 161 | [[package]] 162 | name = "futures-util-preview" 163 | version = "0.2.2" 164 | source = "registry+https://github.com/rust-lang/crates.io-index" 165 | dependencies = [ 166 | "either 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)", 167 | "futures-channel-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 168 | "futures-core-preview 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 169 | "futures-io-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 170 | "futures-sink-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 171 | ] 172 | 173 | [[package]] 174 | name = "generic-array" 175 | version = "0.9.0" 176 | source = "registry+https://github.com/rust-lang/crates.io-index" 177 | dependencies = [ 178 | "typenum 1.10.0 (registry+https://github.com/rust-lang/crates.io-index)", 179 | ] 180 | 181 | [[package]] 182 | name = "hdk" 183 | version = "0.0.1" 184 | source = "git+https://github.com/holochain/holochain-rust#bf38e59b865c5ebe9950987be86c228903f0e054" 185 | dependencies = [ 186 | "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", 187 | "holochain_core_types 0.0.1 (git+https://github.com/holochain/holochain-rust)", 188 | "holochain_dna 0.0.1 (git+https://github.com/holochain/holochain-rust)", 189 | "holochain_wasm_utils 0.0.1 (git+https://github.com/holochain/holochain-rust)", 190 | "lazy_static 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 191 | "serde 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)", 192 | "serde_derive 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)", 193 | "serde_json 1.0.32 (registry+https://github.com/rust-lang/crates.io-index)", 194 | ] 195 | 196 | [[package]] 197 | name = "holochain_core_types" 198 | version = "0.0.1" 199 | source = "git+https://github.com/holochain/holochain-rust#bf38e59b865c5ebe9950987be86c228903f0e054" 200 | dependencies = [ 201 | "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", 202 | "futures-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 203 | "multihash 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 204 | "rust-base58 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)", 205 | "serde 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)", 206 | "serde_derive 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)", 207 | "serde_json 1.0.32 (registry+https://github.com/rust-lang/crates.io-index)", 208 | "snowflake 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 209 | ] 210 | 211 | [[package]] 212 | name = "holochain_dna" 213 | version = "0.0.1" 214 | source = "git+https://github.com/holochain/holochain-rust#bf38e59b865c5ebe9950987be86c228903f0e054" 215 | dependencies = [ 216 | "base64 0.9.3 (registry+https://github.com/rust-lang/crates.io-index)", 217 | "holochain_core_types 0.0.1 (git+https://github.com/holochain/holochain-rust)", 218 | "serde 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)", 219 | "serde_derive 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)", 220 | "serde_json 1.0.32 (registry+https://github.com/rust-lang/crates.io-index)", 221 | "uuid 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)", 222 | ] 223 | 224 | [[package]] 225 | name = "holochain_wasm_utils" 226 | version = "0.0.1" 227 | source = "git+https://github.com/holochain/holochain-rust#bf38e59b865c5ebe9950987be86c228903f0e054" 228 | dependencies = [ 229 | "holochain_core_types 0.0.1 (git+https://github.com/holochain/holochain-rust)", 230 | "serde 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)", 231 | "serde_derive 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)", 232 | "serde_json 1.0.32 (registry+https://github.com/rust-lang/crates.io-index)", 233 | ] 234 | 235 | [[package]] 236 | name = "indexmap" 237 | version = "1.0.2" 238 | source = "registry+https://github.com/rust-lang/crates.io-index" 239 | 240 | [[package]] 241 | name = "iovec" 242 | version = "0.1.2" 243 | source = "registry+https://github.com/rust-lang/crates.io-index" 244 | dependencies = [ 245 | "libc 0.2.43 (registry+https://github.com/rust-lang/crates.io-index)", 246 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 247 | ] 248 | 249 | [[package]] 250 | name = "itoa" 251 | version = "0.4.3" 252 | source = "registry+https://github.com/rust-lang/crates.io-index" 253 | 254 | [[package]] 255 | name = "lazy_static" 256 | version = "1.1.0" 257 | source = "registry+https://github.com/rust-lang/crates.io-index" 258 | dependencies = [ 259 | "version_check 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 260 | ] 261 | 262 | [[package]] 263 | name = "libc" 264 | version = "0.2.43" 265 | source = "registry+https://github.com/rust-lang/crates.io-index" 266 | 267 | [[package]] 268 | name = "multihash" 269 | version = "0.8.0" 270 | source = "registry+https://github.com/rust-lang/crates.io-index" 271 | dependencies = [ 272 | "sha1 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", 273 | "sha2 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", 274 | "tiny-keccak 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 275 | ] 276 | 277 | [[package]] 278 | name = "num" 279 | version = "0.2.0" 280 | source = "registry+https://github.com/rust-lang/crates.io-index" 281 | dependencies = [ 282 | "num-bigint 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 283 | "num-complex 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 284 | "num-integer 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", 285 | "num-iter 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)", 286 | "num-rational 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 287 | "num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 288 | ] 289 | 290 | [[package]] 291 | name = "num-bigint" 292 | version = "0.2.0" 293 | source = "registry+https://github.com/rust-lang/crates.io-index" 294 | dependencies = [ 295 | "num-integer 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", 296 | "num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 297 | ] 298 | 299 | [[package]] 300 | name = "num-complex" 301 | version = "0.2.1" 302 | source = "registry+https://github.com/rust-lang/crates.io-index" 303 | dependencies = [ 304 | "num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 305 | ] 306 | 307 | [[package]] 308 | name = "num-integer" 309 | version = "0.1.39" 310 | source = "registry+https://github.com/rust-lang/crates.io-index" 311 | dependencies = [ 312 | "num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 313 | ] 314 | 315 | [[package]] 316 | name = "num-iter" 317 | version = "0.1.37" 318 | source = "registry+https://github.com/rust-lang/crates.io-index" 319 | dependencies = [ 320 | "num-integer 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", 321 | "num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 322 | ] 323 | 324 | [[package]] 325 | name = "num-rational" 326 | version = "0.2.1" 327 | source = "registry+https://github.com/rust-lang/crates.io-index" 328 | dependencies = [ 329 | "num-bigint 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 330 | "num-integer 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", 331 | "num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 332 | ] 333 | 334 | [[package]] 335 | name = "num-traits" 336 | version = "0.2.6" 337 | source = "registry+https://github.com/rust-lang/crates.io-index" 338 | 339 | [[package]] 340 | name = "num_cpus" 341 | version = "1.8.0" 342 | source = "registry+https://github.com/rust-lang/crates.io-index" 343 | dependencies = [ 344 | "libc 0.2.43 (registry+https://github.com/rust-lang/crates.io-index)", 345 | ] 346 | 347 | [[package]] 348 | name = "proc-macro2" 349 | version = "0.4.20" 350 | source = "registry+https://github.com/rust-lang/crates.io-index" 351 | dependencies = [ 352 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 353 | ] 354 | 355 | [[package]] 356 | name = "quote" 357 | version = "0.6.8" 358 | source = "registry+https://github.com/rust-lang/crates.io-index" 359 | dependencies = [ 360 | "proc-macro2 0.4.20 (registry+https://github.com/rust-lang/crates.io-index)", 361 | ] 362 | 363 | [[package]] 364 | name = "rand" 365 | version = "0.4.3" 366 | source = "registry+https://github.com/rust-lang/crates.io-index" 367 | dependencies = [ 368 | "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 369 | "libc 0.2.43 (registry+https://github.com/rust-lang/crates.io-index)", 370 | "winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 371 | ] 372 | 373 | [[package]] 374 | name = "rust-base58" 375 | version = "0.0.4" 376 | source = "registry+https://github.com/rust-lang/crates.io-index" 377 | dependencies = [ 378 | "num 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 379 | ] 380 | 381 | [[package]] 382 | name = "ryu" 383 | version = "0.2.6" 384 | source = "registry+https://github.com/rust-lang/crates.io-index" 385 | 386 | [[package]] 387 | name = "safemem" 388 | version = "0.3.0" 389 | source = "registry+https://github.com/rust-lang/crates.io-index" 390 | 391 | [[package]] 392 | name = "serde" 393 | version = "1.0.80" 394 | source = "registry+https://github.com/rust-lang/crates.io-index" 395 | 396 | [[package]] 397 | name = "serde_derive" 398 | version = "1.0.80" 399 | source = "registry+https://github.com/rust-lang/crates.io-index" 400 | dependencies = [ 401 | "proc-macro2 0.4.20 (registry+https://github.com/rust-lang/crates.io-index)", 402 | "quote 0.6.8 (registry+https://github.com/rust-lang/crates.io-index)", 403 | "syn 0.15.15 (registry+https://github.com/rust-lang/crates.io-index)", 404 | ] 405 | 406 | [[package]] 407 | name = "serde_json" 408 | version = "1.0.32" 409 | source = "registry+https://github.com/rust-lang/crates.io-index" 410 | dependencies = [ 411 | "indexmap 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 412 | "itoa 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", 413 | "ryu 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 414 | "serde 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)", 415 | ] 416 | 417 | [[package]] 418 | name = "sha1" 419 | version = "0.5.0" 420 | source = "registry+https://github.com/rust-lang/crates.io-index" 421 | 422 | [[package]] 423 | name = "sha2" 424 | version = "0.7.1" 425 | source = "registry+https://github.com/rust-lang/crates.io-index" 426 | dependencies = [ 427 | "block-buffer 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 428 | "byte-tools 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 429 | "digest 0.7.6 (registry+https://github.com/rust-lang/crates.io-index)", 430 | "fake-simd 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 431 | ] 432 | 433 | [[package]] 434 | name = "snowflake" 435 | version = "1.3.0" 436 | source = "registry+https://github.com/rust-lang/crates.io-index" 437 | 438 | [[package]] 439 | name = "syn" 440 | version = "0.15.15" 441 | source = "registry+https://github.com/rust-lang/crates.io-index" 442 | dependencies = [ 443 | "proc-macro2 0.4.20 (registry+https://github.com/rust-lang/crates.io-index)", 444 | "quote 0.6.8 (registry+https://github.com/rust-lang/crates.io-index)", 445 | "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 446 | ] 447 | 448 | [[package]] 449 | name = "tasks" 450 | version = "0.1.0" 451 | dependencies = [ 452 | "hdk 0.0.1 (git+https://github.com/holochain/holochain-rust)", 453 | "holochain_wasm_utils 0.0.1 (git+https://github.com/holochain/holochain-rust)", 454 | "serde 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)", 455 | "serde_derive 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)", 456 | "serde_json 1.0.32 (registry+https://github.com/rust-lang/crates.io-index)", 457 | ] 458 | 459 | [[package]] 460 | name = "tiny-keccak" 461 | version = "1.4.2" 462 | source = "registry+https://github.com/rust-lang/crates.io-index" 463 | dependencies = [ 464 | "crunchy 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 465 | ] 466 | 467 | [[package]] 468 | name = "typenum" 469 | version = "1.10.0" 470 | source = "registry+https://github.com/rust-lang/crates.io-index" 471 | 472 | [[package]] 473 | name = "unicode-xid" 474 | version = "0.1.0" 475 | source = "registry+https://github.com/rust-lang/crates.io-index" 476 | 477 | [[package]] 478 | name = "uuid" 479 | version = "0.6.5" 480 | source = "registry+https://github.com/rust-lang/crates.io-index" 481 | dependencies = [ 482 | "cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 483 | "rand 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", 484 | ] 485 | 486 | [[package]] 487 | name = "version_check" 488 | version = "0.1.5" 489 | source = "registry+https://github.com/rust-lang/crates.io-index" 490 | 491 | [[package]] 492 | name = "winapi" 493 | version = "0.2.8" 494 | source = "registry+https://github.com/rust-lang/crates.io-index" 495 | 496 | [[package]] 497 | name = "winapi" 498 | version = "0.3.6" 499 | source = "registry+https://github.com/rust-lang/crates.io-index" 500 | dependencies = [ 501 | "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 502 | "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 503 | ] 504 | 505 | [[package]] 506 | name = "winapi-i686-pc-windows-gnu" 507 | version = "0.4.0" 508 | source = "registry+https://github.com/rust-lang/crates.io-index" 509 | 510 | [[package]] 511 | name = "winapi-x86_64-pc-windows-gnu" 512 | version = "0.4.0" 513 | source = "registry+https://github.com/rust-lang/crates.io-index" 514 | 515 | [metadata] 516 | "checksum arrayref 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "0d382e583f07208808f6b1249e60848879ba3543f57c32277bf52d69c2f0f0ee" 517 | "checksum base64 0.9.3 (registry+https://github.com/rust-lang/crates.io-index)" = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643" 518 | "checksum bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "228047a76f468627ca71776ecdebd732a3423081fcf5125585bcd7c49886ce12" 519 | "checksum block-buffer 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a076c298b9ecdb530ed9d967e74a6027d6a7478924520acddcddc24c1c8ab3ab" 520 | "checksum byte-tools 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "560c32574a12a89ecd91f5e742165893f86e3ab98d21f8ea548658eb9eef5f40" 521 | "checksum byteorder 1.2.7 (registry+https://github.com/rust-lang/crates.io-index)" = "94f88df23a25417badc922ab0f5716cc1330e87f71ddd9203b3a3ccd9cedf75d" 522 | "checksum cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "082bb9b28e00d3c9d39cc03e64ce4cea0f1bb9b3fde493f0cbc008472d22bdf4" 523 | "checksum crunchy 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "a2f4a431c5c9f662e1200b7c7f02c34e91361150e382089a8f2dec3ba680cbda" 524 | "checksum digest 0.7.6 (registry+https://github.com/rust-lang/crates.io-index)" = "03b072242a8cbaf9c145665af9d250c59af3b958f83ed6824e13533cf76d5b90" 525 | "checksum either 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3be565ca5c557d7f59e7cfcf1844f9e3033650c929c6566f511e8005f205c1d0" 526 | "checksum fake-simd 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed" 527 | "checksum fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" 528 | "checksum fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" 529 | "checksum futures-async-runtime-preview 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "33c03035be1dae627b7e05c6984acb1f2086043fde5249ae51604f1ff20ed037" 530 | "checksum futures-channel-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d6f8aec6b0eb1d281843ec666fba2b71a49610181e3078fbef7a8cbed481821e" 531 | "checksum futures-core-preview 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "098785413db44e5dbf3b1fc23c24039a9091bea5acb3eb0d293f386f18aff97d" 532 | "checksum futures-executor-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "28ff61425699ca85de5c63c1f135278403518c3398bd15cf4b6fd1d21c9846e4" 533 | "checksum futures-io-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "aaa769a6ac904912c1557b4dcf85b93db2bc9ba57c349f9ce43870e49d67f8e1" 534 | "checksum futures-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c4d575096a4e2cf458f309b5b7bce5c8aaad8e874b8d77f0aa26c08d7ac18f74" 535 | "checksum futures-sink-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "5dc4cdc628b934f18a11ba070d589655f68cfec031a16381b0e7784ff0e9cc18" 536 | "checksum futures-stable-preview 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "0a6ba960b8bbbc14a9a741cc8ad9c26aff44538ea14be021db905b43f33854da" 537 | "checksum futures-util-preview 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "4b29aa737dba9e2e47a5dcd4d58ec7c7c2d5f78e8460f609f857bcf04163235e" 538 | "checksum generic-array 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ef25c5683767570c2bbd7deba372926a55eaae9982d7726ee2a1050239d45b9d" 539 | "checksum hdk 0.0.1 (git+https://github.com/holochain/holochain-rust)" = "" 540 | "checksum holochain_core_types 0.0.1 (git+https://github.com/holochain/holochain-rust)" = "" 541 | "checksum holochain_dna 0.0.1 (git+https://github.com/holochain/holochain-rust)" = "" 542 | "checksum holochain_wasm_utils 0.0.1 (git+https://github.com/holochain/holochain-rust)" = "" 543 | "checksum indexmap 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7e81a7c05f79578dbc15793d8b619db9ba32b4577003ef3af1a91c416798c58d" 544 | "checksum iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dbe6e417e7d0975db6512b90796e8ce223145ac4e33c377e4a42882a0e88bb08" 545 | "checksum itoa 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "1306f3464951f30e30d12373d31c79fbd52d236e5e896fd92f96ec7babbbe60b" 546 | "checksum lazy_static 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ca488b89a5657b0a2ecd45b95609b3e848cf1755da332a0da46e2b2b1cb371a7" 547 | "checksum libc 0.2.43 (registry+https://github.com/rust-lang/crates.io-index)" = "76e3a3ef172f1a0b9a9ff0dd1491ae5e6c948b94479a3021819ba7d860c8645d" 548 | "checksum multihash 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c62469025f45dee2464ef9fc845f4683c543993792c1993e7d903c17a4546b74" 549 | "checksum num 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "cf4825417e1e1406b3782a8ce92f4d53f26ec055e3622e1881ca8e9f5f9e08db" 550 | "checksum num-bigint 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3eceac7784c5dc97c2d6edf30259b4e153e6e2b42b3c85e9a6e9f45d06caef6e" 551 | "checksum num-complex 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "107b9be86cd2481930688277b675b0114578227f034674726605b8a482d8baf8" 552 | "checksum num-integer 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)" = "e83d528d2677f0518c570baf2b7abdcf0cd2d248860b68507bdcb3e91d4c0cea" 553 | "checksum num-iter 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)" = "af3fdbbc3291a5464dc57b03860ec37ca6bf915ed6ee385e7c6c052c422b2124" 554 | "checksum num-rational 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4e96f040177bb3da242b5b1ecf3f54b5d5af3efbbfb18608977a5d2767b22f10" 555 | "checksum num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0b3a5d7cc97d6d30d8b9bc8fa19bf45349ffe46241e8816f50f62f6d6aaabee1" 556 | "checksum num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c51a3322e4bca9d212ad9a158a02abc6934d005490c054a2778df73a70aa0a30" 557 | "checksum proc-macro2 0.4.20 (registry+https://github.com/rust-lang/crates.io-index)" = "3d7b7eaaa90b4a90a932a9ea6666c95a389e424eff347f0f793979289429feee" 558 | "checksum quote 0.6.8 (registry+https://github.com/rust-lang/crates.io-index)" = "dd636425967c33af890042c483632d33fa7a18f19ad1d7ea72e8998c6ef8dea5" 559 | "checksum rand 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "8356f47b32624fef5b3301c1be97e5944ecdd595409cc5da11d05f211db6cfbd" 560 | "checksum rust-base58 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "b313b91fcdc6719ad41fa2dad2b7e810b03833fae4bf911950e15529a5f04439" 561 | "checksum ryu 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "7153dd96dade874ab973e098cb62fcdbb89a03682e46b144fd09550998d4a4a7" 562 | "checksum safemem 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8dca453248a96cb0749e36ccdfe2b0b4e54a61bfef89fb97ec621eb8e0a93dd9" 563 | "checksum serde 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)" = "15c141fc7027dd265a47c090bf864cf62b42c4d228bbcf4e51a0c9e2b0d3f7ef" 564 | "checksum serde_derive 1.0.80 (registry+https://github.com/rust-lang/crates.io-index)" = "225de307c6302bec3898c51ca302fc94a7a1697ef0845fcee6448f33c032249c" 565 | "checksum serde_json 1.0.32 (registry+https://github.com/rust-lang/crates.io-index)" = "43344e7ce05d0d8280c5940cabb4964bea626aa58b1ec0e8c73fa2a8512a38ce" 566 | "checksum sha1 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "171698ce4ec7cbb93babeb3190021b4d72e96ccb98e33d277ae4ea959d6f2d9e" 567 | "checksum sha2 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9eb6be24e4c23a84d7184280d2722f7f2731fcdd4a9d886efbfe4413e4847ea0" 568 | "checksum snowflake 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "27207bb65232eda1f588cf46db2fee75c0808d557f6b3cf19a75f5d6d7c94df1" 569 | "checksum syn 0.15.15 (registry+https://github.com/rust-lang/crates.io-index)" = "0a9c2bf1e53c21704a7cce1b2a42768f1ae32a6777108a0d7f1faa4bfe7f7c04" 570 | "checksum tiny-keccak 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e9175261fbdb60781fcd388a4d6cc7e14764a2b629a7ad94abb439aed223a44f" 571 | "checksum typenum 1.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = "612d636f949607bdf9b123b4a6f6d966dedf3ff669f7f045890d3a4a73948169" 572 | "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" 573 | "checksum uuid 0.6.5 (registry+https://github.com/rust-lang/crates.io-index)" = "e1436e58182935dcd9ce0add9ea0b558e8a87befe01c1a301e6020aeb0876363" 574 | "checksum version_check 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd" 575 | "checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" 576 | "checksum winapi 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "92c1eb33641e276cfa214a0522acad57be5c56b10cb348b3c5117db75f3ac4b0" 577 | "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 578 | "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 579 | --------------------------------------------------------------------------------