Skip to content

docs(core): document std requirement and filesystem feature flag#551

Merged
avifenesh merged 3 commits intomainfrom
feature/document-std-req-485
Feb 21, 2026
Merged

docs(core): document std requirement and filesystem feature flag#551
avifenesh merged 3 commits intomainfrom
feature/document-std-req-485

Conversation

@avifenesh
Copy link
Collaborator

Summary

  • Add clarifying comment in Cargo.toml above [features] noting std is required unconditionally
  • Add "Feature Flags" section to crates/agnix-core/README.md documenting the filesystem feature and std requirement
  • Add std requirement note to crate-level doc comment in lib.rs

Test plan

  • cargo check passes
  • cargo test passes (all agnix-core tests)
  • Release build succeeds

Closes #485

Copilot AI review requested due to automatic review settings February 21, 2026 05:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Documents that agnix-core requires std regardless of whether the filesystem feature is enabled, addressing confusion for downstream crates (e.g., WASM consumers) that use default-features = false.

Changes:

  • Add a crate-level docs note in lib.rs clarifying std is required and filesystem does not imply no_std.
  • Add a “Feature Flags” section to crates/agnix-core/README.md documenting the filesystem feature and std requirement.
  • Add a clarifying comment above [features] in crates/agnix-core/Cargo.toml describing what filesystem controls.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
crates/agnix-core/src/lib.rs Adds crate-level documentation clarifying unconditional std requirement and the meaning of filesystem.
crates/agnix-core/README.md Documents feature flags, including filesystem defaults and how default-features = false affects dependencies (not std).
crates/agnix-core/Cargo.toml Adds an inline note above [features] to prevent misinterpreting feature toggles as no_std support.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Document the new crate-level and README documentation clarifying that
agnix-core requires std unconditionally and filesystem feature flag does
not enable no_std support for WASM consumers.
Copilot AI review requested due to automatic review settings February 21, 2026 05:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

[versions]
patched = [">= 0.3.47"]
unaffected = ["< 0.3.6"]
\`\`\`
Copy link

Copilot AI Feb 21, 2026

Choose a reason for hiding this comment

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

This workaround for the CVSS 4.0 parsing issue in cargo-audit is unrelated to the PR's purpose of documenting the std requirement. This change should be in a separate PR focused on fixing the CI security workflow.

Additionally, line 62 contains escaped backticks (```) which will literally appear in the generated advisory file. The escape sequences should be removed - the heredoc EOF delimiter will preserve the literal backticks without escaping.

Suggested change
\`\`\`

Copilot uses AI. Check for mistakes.
@avifenesh avifenesh force-pushed the feature/document-std-req-485 branch from 8c3c77c to 44d573b Compare February 21, 2026 05:34
@avifenesh avifenesh merged commit ec401d1 into main Feb 21, 2026
39 of 43 checks passed
@avifenesh avifenesh deleted the feature/document-std-req-485 branch February 21, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document that agnix-core requires std even without filesystem feature

2 participants