View output.log
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
[1;32mPackaging[0m files for testing to file: "/home/simwilso/Code/TestDemo/txrx/dist/txrx.dna.json" | |
> [32mCARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && echo $CARGO_TARGET_DIR[0m [36m[0m | |
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && echo $CARGO_TARGET_DIR " | |
/home/simwilso/Code/TestDemo/txrx/target | |
> [32mCARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && cargo[0m [36mbuild --release --target=wasm32-unknown-unknown --target-dir=$CARGO_TARGET_DIR[0m | |
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && cargo build --release --target=wasm32-unknown-unknown --target-dir=$CARGO_TARGET_DIR" | |
> [32mCARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm-gc[0m [36m$CARGO_TARGET_DIR/wasm32-unknown-unknown/release/txrx.wasm[0m | |
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && wasm-gc $CARGO_TARGET_DIR/wasm32-unknown-unknown/release/txrx.wasm" | |
> [32mCARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/targ |
View hello blog zome lib.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
#![feature(proc_macro_hygiene)] | |
#[macro_use] | |
extern crate hdk; | |
extern crate hdk_proc_macros; | |
extern crate serde; | |
#[macro_use] | |
extern crate serde_derive; | |
extern crate serde_json; | |
#[macro_use] | |
extern crate holochain_json_derive; |
View Hello blog test file index.js
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
/// NB: The tryorama config patterns are still not quite stabilized. | |
/// See the tryorama README [https://github.com/holochain/tryorama] | |
/// for a potentially more accurate example | |
const path = require('path'); | |
const { | |
Orchestrator, | |
Config, | |
combine, |
View c-release zome configuration
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
#![feature(proc_macro_hygiene)] | |
#[macro_use] | |
extern crate hdk; | |
extern crate hdk_proc_macros; | |
extern crate serde; | |
#[macro_use] | |
extern crate serde_derive; | |
extern crate serde_json; | |
#[macro_use] | |
extern crate holochain_json_derive; |
View DHT Calls from RUST
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
extern crate reqwest; | |
extern crate serde_json; | |
extern crate serde_derive; | |
extern crate serde; | |
extern crate ws; | |
use ws::{connect, CloseCode}; | |
use serde_json::{json, Deserializer, Value}; | |
use std::sync::mpsc::channel; |
View zome_config
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
#![feature(proc_macro_hygiene)] | |
#[macro_use] | |
extern crate hdk; | |
extern crate hdk_proc_macros; | |
extern crate serde; | |
#[macro_use] | |
extern crate serde_derive; | |
extern crate serde_json; | |
#[macro_use] | |
extern crate holochain_json_derive; |
View gist:b0f7363d1fa06863f3384a401d38a508
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
// trying to create the websocket sync connection and keep it open | |
let mut client = ClientBuilder::new("ws://localhost:3401") | |
.unwrap() | |
.connect_insecure() | |
.unwrap(); | |
// this doesn't compile due to the function not accepting the dynamic 'client' but is this how the send function should look? | |
fn set_to_dht(_signal: String) { |
View gist:e00251bb5185c8bd80b9970f9bbdc745
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
// I want this function in my rust program to push an entry into the DHT but now sure how to do this under this EMIT method? | |
let signal_string = "I want this go into the signal entry on my dht"; | |
fn set_to_dht(_signal: String) { | |
let json = serde_json::json!( | |
{"id": "signal", | |
"jsonrpc": "2.0", | |
"method": "call", | |
"params": {"instance_id": "test-instance", |
View gist:23b0e8ba048167c7c715b5d25b1e8f42
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
#![feature(proc_macro_hygiene)] | |
#[macro_use] | |
extern crate hdk; | |
extern crate hdk_proc_macros; | |
extern crate serde; | |
#[macro_use] | |
extern crate serde_derive; | |
extern crate serde_json; | |
#[macro_use] | |
extern crate holochain_json_derive; |