-
Notifications
You must be signed in to change notification settings - Fork 4
append hdk-rust as a dep for generated rust zomes #20
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/cli/scaffold/rust.rs
Outdated
// @see https://github.com/holochain/holochain-cmd/issues/19 | ||
let hdk_dep: &str = "hdk = { git = \"https://github.com/holochain/hdk-rust\" }"; | ||
|
||
f.write_all(hdk_dep.as_bytes())?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to see the build configuration for wasm added as well. It needs to be built using this configuration:
[lib]
crate-type = ["cdylib"]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lucksus Do you know more about this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so you do think we should be generating these with '--lib' for crates of the library type then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sphinxc0re can we add a ticket and address in a separate PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really think this should be done right here 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok so I have questions:
Will this crate-type property work if the crate is not of type lib
? I am happy to add it, but I'd like to understand what it does
closes #17
followup #19