@junobuild/cli 0.1.8 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/cli",
3
- "version": "0.1.8",
3
+ "version": "0.2.0",
4
4
  "description": "The Juno command-line interface",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "@dfinity/identity": "^2.3.0",
32
32
  "@dfinity/principal": "^2.3.0",
33
33
  "@junobuild/admin": "^0.1.5",
34
- "@junobuild/cli-tools": "^0.1.1",
34
+ "@junobuild/cli-tools": "^0.1.2",
35
35
  "@junobuild/config-loader": "^0.1.1",
36
36
  "@junobuild/core": "^0.1.7",
37
37
  "@junobuild/did-tools": "^0.1.0",
@@ -10,6 +10,20 @@ use junobuild_satellite::{
10
10
  OnDeleteManyDocsContext, OnSetDocContext, OnSetManyDocsContext, OnUploadAssetContext,
11
11
  };
12
12
 
13
+ // All the available hooks and assertions for your Datastore and Storage are scaffolded by default in this `lib.rs` module.
14
+ // However, if you don’t have to implement all of them, for example to improve readability or reduce unnecessary logic,
15
+ // you can selectively enable only the features you need.
16
+ //
17
+ // To do this, disable the default features in your `Cargo.toml` and explicitly specify only the ones you want to use.
18
+ //
19
+ // For example, if you only need `on_set_doc`, configure your `Cargo.toml` like this:
20
+ //
21
+ // [dependencies]
22
+ // junobuild-satellite = { version = "0.0.22", default-features = false, features = ["on_set_doc"] }
23
+ //
24
+ // With this setup, only `on_set_doc` must be implemented with custom logic,
25
+ // and other hooks and assertions can be removed. They will not be included in your Satellite.
26
+
13
27
  #[on_set_doc]
14
28
  async fn on_set_doc(_context: OnSetDocContext) -> Result<(), String> {
15
29
  Ok(())