dfinity / sdk

IC SDK: a Software Development Kit for creating and managing canister smart contracts on the ICP blockchain.
https://internetcomputer.org/developers
Apache License 2.0
174 stars 83 forks source link

refactor: Prepare for auto-generation of extension.json #3814

Closed anchpop closed 3 months ago

anchpop commented 3 months ago

Description

Currently, extension.json is always written by hand. Since the target type of extension.json is ExtensionManifest, in theory it could be automatically generated from the information by clap. But libraries importing ExtensionManifest are not able to actually do this because some fields are not pub and because ExtensionManifest doesn't implement Serialize. This PR fixes both of those issues