Skip to content

Commit

Permalink
Merge pull request #515 from holochain/hotfix-unstable-countersigning…
Browse files Browse the repository at this point in the history
…-in-hdk

hotfix: mention unstable-countersigning flag for hdk in 0.4 upgrade guide
  • Loading branch information
pdaoust authored Jan 23, 2025
2 parents 8001195 + c8d1e2b commit 1a00d97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/resources/upgrade/upgrade-holochain-0.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ The biggest change for 0.4 is that some features are marked `unstable` and aren'
**If your DNA needs to call a host function that depends on an unstable feature**, you'll need to do two things:
1. [Build a custom Holochain binary](https://github.com/holochain/holonix?tab=readme-ov-file#customized-holochain-build) with both the specific feature you need (see the list above) and `unstable-functions` enabled.
2. Enable the `unstable-functions` flag for the `hdi` and `hdk` dependencies in your zomes' `Cargo.toml` files:
2. Enable the `unstable-functions` flag for the `hdi` and `hdk` dependencies in your zomes' `Cargo.toml` files, and enable the `unstable-countersigning` flag for the `hdk` dependency if you need it:

```diff:toml
[dependencies]
Expand All @@ -157,7 +157,7 @@ The biggest change for 0.4 is that some features are marked `unstable` and aren'
```diff:toml
[dependencies]
-hdk = { workspace = true }
+hdk = { workspace = true, features = ["unstable-functions"] }
+hdk = { workspace = true, features = ["unstable-functions", "unstable-countersigning"] }
```
Note that you'll need to make sure your users are running your custom conductor binary. If you compile your zomes without `unstable-functions` enabled for `hdi` or `hdk`, users with the flag enabled in Holochain will still be able to use your hApp, but if you compile your zomes _with_ `unstable-functions`, users with the flag(s) disabled won't be able to use your hApp.
Expand Down

0 comments on commit 1a00d97

Please sign in to comment.