Page URL: http://developer.holochain.org/docs/tutorials/coreconcepts/hello_holo/
I’ve already created a bug here
When I run the command hc generate zomes/hello rust-proc
the lib.rs file is generated, but has different content to what is in the tutorial
the generated file is something like
#![feature(proc_macro_hygiene)]
use hdk::prelude::*;
use hdk_proc_macros::zome;
// see https://developer.holochain.org/api/0.0.46-alpha1/hdk/ for info on using the hdk library
// This is a sample zome that defines an entry type "MyEntry" that can be committed to the
// agent's chain via the exposed function create_my_entry
#[derive(Serialize, Deserialize, Debug, DefaultJson, Clone)]
pub struct MyEntry {
content: String,
}
while the tutorial has something like
#![feature(proc_macro_hygiene)]
extern crate hdk;
extern crate hdk_proc_macros;
extern crate serde;
#[macro_use]
extern crate serde_derive;
extern crate serde_json;
extern crate holochain_json_derive;
use hdk::{
error::ZomeApiResult,
};
use hdk_proc_macros::zome;
// see https://developer.holochain.org/api/0.0.40-alpha1/hdk/ for info on using the hdk library
// This is a sample zome that defines an entry type "MyEntry" that can be committed to the
// agent's chain via the exposed function create_my_entry
I think the tutorial needs to updated to the latest rust code generator
running hc --version
gives hc 0.0.46-alpha1