Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.

append hdk-rust as a dep for generated rust zomes #20

Merged
merged 4 commits into from
Aug 30, 2018

Conversation

Connoropolous
Copy link
Collaborator

closes #17

followup #19

Copy link
Contributor

@thedavidmeister thedavidmeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

screen shot 2018-08-29 at 7 08 42 pm

before and after

src/cli/scaffold/rust.rs Outdated Show resolved Hide resolved
// @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())?;
Copy link
Contributor

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"]

Copy link
Contributor

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?

Copy link
Collaborator Author

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?

Copy link
Collaborator Author

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?

Copy link
Contributor

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 😅

Copy link
Collaborator Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants