From 3a49a5d661456a6ebc9034c4e0b816493f5b279a Mon Sep 17 00:00:00 2001 From: Pataesci Bufran <56449288+JasonLeung1983@users.noreply.github.com> Date: Thu, 27 Nov 2025 03:00:07 +0300 Subject: [PATCH] Refactor Cargo.toml comments and dependencies Updated comments for clarity and disabled default features for compatibility. --- sdk/Cargo.toml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index 6d918fc75..0a0c78d18 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -1,6 +1,9 @@ +# The Cargo manifest for the Filecoin Virtual Machine Actor Development SDK. + [package] name = "fvm_sdk" description = "Filecoin Virtual Machine actor development SDK" +# Use workspace inherited metadata for version, license, edition, and repository for consistency. version.workspace = true license.workspace = true edition.workspace = true @@ -8,11 +11,14 @@ repository.workspace = true authors = ["Protocol Labs", "Filecoin Core Devs"] [lib] +# This SDK is a library crate, typically compiled into a Wasm module for FVM. crate-type = ["lib"] [dependencies] +# Dependencies inherited from the workspace manifest for version control. cid = { workspace = true } -## num-traits; disabling default features makes it play nice with no_std. +# num-traits: Disabled default features to ensure compatibility with `no_std` environments +# like the FVM, optimizing for minimal size. num-traits = { workspace = true, default-features = false } lazy_static = { workspace = true } log = { workspace = true } @@ -21,10 +27,12 @@ fvm_shared = { workspace = true } fvm_ipld_encoding = { workspace = true } [features] +# The default set of features when compiling this crate. default = ["verify-signature"] m2-native = [] upgrade-actor = [] -# Use this feature to keep `verify_signature` syscall that is supposed to be removed by FIP-0079, -# The current implementation keeps it by default for backward compatibility reason. -# See + +# This feature keeps the deprecated `verify_signature` syscall. +# It is enabled by default for backward compatibility purposes until FIP-0079 is fully enforced. +# See tracking issue: verify-signature = []