Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add labels for optional features #404

Merged
merged 1 commit into from
Oct 5, 2022

Conversation

dave-tucker
Copy link
Member

Following the lead of crates like tokio and nix, we now annotate APIs that require optional features. This helps in cases where a user wants to have an AsyncPerfEventArray which is documented on crates.io, but it's not obvious that you have to enable the async feature.

Signed-off-by: Dave Tucker dave@dtucker.co.uk

@netlify
Copy link

netlify bot commented Oct 4, 2022

Deploy Preview for aya-rs-docs ready!

Name Link
🔨 Latest commit 95e8c78
🔍 Latest deploy log https://app.netlify.com/sites/aya-rs-docs/deploys/633d7cdb590e7400084ef313
😎 Deploy Preview https://deploy-preview-404--aya-rs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@dave-tucker
Copy link
Member Author

image

aya/src/lib.rs Outdated Show resolved Hide resolved
@dave-tucker dave-tucker mentioned this pull request Oct 4, 2022
Following the lead of crates like tokio and nix, we now annotate APIs
that require optional features. This helps in cases where a user wants
to have an `AsyncPerfEventArray` which is documented on crates.io, but
it's not obvious that you have to enable the `async` feature.

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
@dave-tucker dave-tucker merged commit 14ba644 into aya-rs:main Oct 5, 2022
@dave-tucker dave-tucker added documentation Improvements or additions to documentation aya This is about aya (userspace) labels Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aya This is about aya (userspace) documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants