René's URL Explorer Experiment


Title: [Docs] Pull content from README into `lambda-runtime` crate docs / other readmes into other crates · Issue #990 · aws/aws-lambda-rust-runtime · GitHub

Open Graph Title: [Docs] Pull content from README into `lambda-runtime` crate docs / other readmes into other crates · Issue #990 · aws/aws-lambda-rust-runtime

X Title: [Docs] Pull content from README into `lambda-runtime` crate docs / other readmes into other crates · Issue #990 · aws/aws-lambda-rust-runtime

Description: We have a fairly rich README in the repository, but very minimalist lambda-runtime docs (same goes for lambda-extension, but i think lambda-runtime is most important). I know the README already shows in GitHub, and on crates.io, but docs...

Open Graph Description: We have a fairly rich README in the repository, but very minimalist lambda-runtime docs (same goes for lambda-extension, but i think lambda-runtime is most important). I know the README already sho...

X Description: We have a fairly rich README in the repository, but very minimalist lambda-runtime docs (same goes for lambda-extension, but i think lambda-runtime is most important). I know the README already sho...

Opengraph URL: https://github.com/aws/aws-lambda-rust-runtime/issues/990

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Docs] Pull content from README into `lambda-runtime` crate docs / other readmes into other crates","articleBody":"We have a fairly rich README in the repository, but very minimalist `lambda-runtime` docs (same goes for `lambda-extension`, but i think `lambda-runtime` is most important). I know the README already shows in GitHub, and on `crates.io`, but `docs.rs` adds discoverability as well. It gives the impression that the crate is well-maintained (which it is), whereas sparse `docs.rs` docs don't look so great.\n\nEven without a full from-scratch crate docs write, I think it would add a lot of value to make some of the content in the README show up in `docs.rs`. \n\n## How to do it\n### Bad options\n#### Simple `include_str!`\nA simple way to do this would just be to add:\n```\n#![doc = include_str!(\"../../README.md\")]\n```\n\nHowever the first section with all the badges break. So I don't think this is a good option.\n\n#### `include-utils`\nThere is a crate, [include-utils](https://docs.rs/include-utils/latest/include_utils/index.html), that does pretty much exactly what we need. It would allow only including a subset of the file, so we would include everything after the first section.\n\nHowever, it would force a new proc macro-based dependency into our primary dependencies, which I don't love. It also seems maintained but is not widely used.\n\nSo, I don't think this is a great option either.\n\n### Good options\n#### Custom `build.rs` handling to filter the file\nInstead of using the proc macro, we could also just filter the file into what we need via a custom `build.rs`. This is nice too since then we could replace the badges with regular links to the related crates, which would be kind of nice.\n\nThe downside here is a bit of added complexity, but I don't mind knocking it out if desired.\n\n#### Move most of docs into crate docs, use `cargo-readme`\nThe other good option is to flip things around and migrate the source of truth to be the library docs proper. Then the tool [cargo-readme](https://github.com/webern/cargo-readme) lets us generate the markdown `README` from those.\n\nThis has the added benefit of making it really easy to add cross-linking to types and functions inside the crate docs, which is nice.\n\nThe downside is that now we need to generate README changes via an extra build step. I guess we could add a pre-commit hook to do it so that nobody forgets?\n","author":{"url":"https://github.com/jlizen","@type":"Person","name":"jlizen"},"datePublished":"2025-05-08T15:40:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/990/aws-lambda-rust-runtime/issues/990"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b6e4a384-2722-6060-971a-67779222e684
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC2CA:5283A:1D80A60:260F025:698BFA7A
html-safe-noncea8c8f2007ba7a2e87f945bdc29b119fafdcd2982ff46430ed5dd78ba895549a4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkNBOjUyODNBOjFEODBBNjA6MjYwRjAyNTo2OThCRkE3QSIsInZpc2l0b3JfaWQiOiI0MzcwOTQ5NzA1OTM4MjM4MDc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca99186bd63c7c02866cb684f42b24788bfd86a80b17ed5e546c21f052e3b9426
hovercard-subject-tagissue:3049397987
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/aws/aws-lambda-rust-runtime/990/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a01c8ade0cbf84c2a07f96299b1188bb2f67c194e8f75df399fa74239c0dcd08/aws/aws-lambda-rust-runtime/issues/990
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a01c8ade0cbf84c2a07f96299b1188bb2f67c194e8f75df399fa74239c0dcd08/aws/aws-lambda-rust-runtime/issues/990
og:image:altWe have a fairly rich README in the repository, but very minimalist lambda-runtime docs (same goes for lambda-extension, but i think lambda-runtime is most important). I know the README already sho...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejlizen
hostnamegithub.com
expected-hostnamegithub.com
None640eeb7b6ff4d8d106235d228c0c286e82592d4d2403227b5b2b4fc5832297a4
turbo-cache-controlno-preview
go-importgithub.com/aws/aws-lambda-rust-runtime git https://github.com/aws/aws-lambda-rust-runtime.git
octolytics-dimension-user_id2232217
octolytics-dimension-user_loginaws
octolytics-dimension-repository_id156752158
octolytics-dimension-repository_nwoaws/aws-lambda-rust-runtime
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id156752158
octolytics-dimension-repository_network_root_nwoaws/aws-lambda-rust-runtime
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3d444f0a47beeeac94cddbb51c91ab408befe8d4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/aws/aws-lambda-rust-runtime/issues/990#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Faws%2Faws-lambda-rust-runtime%2Fissues%2F990
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Faws%2Faws-lambda-rust-runtime%2Fissues%2F990
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=aws%2Faws-lambda-rust-runtime
Reloadhttps://github.com/aws/aws-lambda-rust-runtime/issues/990
Reloadhttps://github.com/aws/aws-lambda-rust-runtime/issues/990
Reloadhttps://github.com/aws/aws-lambda-rust-runtime/issues/990
aws https://github.com/aws
aws-lambda-rust-runtimehttps://github.com/aws/aws-lambda-rust-runtime
Notifications https://github.com/login?return_to=%2Faws%2Faws-lambda-rust-runtime
Fork 380 https://github.com/login?return_to=%2Faws%2Faws-lambda-rust-runtime
Star 3.6k https://github.com/login?return_to=%2Faws%2Faws-lambda-rust-runtime
Code https://github.com/aws/aws-lambda-rust-runtime
Issues 19 https://github.com/aws/aws-lambda-rust-runtime/issues
Pull requests 6 https://github.com/aws/aws-lambda-rust-runtime/pulls
Discussions https://github.com/aws/aws-lambda-rust-runtime/discussions
Actions https://github.com/aws/aws-lambda-rust-runtime/actions
Projects 0 https://github.com/aws/aws-lambda-rust-runtime/projects
Security 0 https://github.com/aws/aws-lambda-rust-runtime/security
Insights https://github.com/aws/aws-lambda-rust-runtime/pulse
Code https://github.com/aws/aws-lambda-rust-runtime
Issues https://github.com/aws/aws-lambda-rust-runtime/issues
Pull requests https://github.com/aws/aws-lambda-rust-runtime/pulls
Discussions https://github.com/aws/aws-lambda-rust-runtime/discussions
Actions https://github.com/aws/aws-lambda-rust-runtime/actions
Projects https://github.com/aws/aws-lambda-rust-runtime/projects
Security https://github.com/aws/aws-lambda-rust-runtime/security
Insights https://github.com/aws/aws-lambda-rust-runtime/pulse
New issuehttps://github.com/login?return_to=https://github.com/aws/aws-lambda-rust-runtime/issues/990
New issuehttps://github.com/login?return_to=https://github.com/aws/aws-lambda-rust-runtime/issues/990
[Docs] Pull content from README into lambda-runtime crate docs / other readmes into other crateshttps://github.com/aws/aws-lambda-rust-runtime/issues/990#top
https://github.com/jlizen
https://github.com/jlizen
jlizenhttps://github.com/jlizen
on May 8, 2025https://github.com/aws/aws-lambda-rust-runtime/issues/990#issue-3049397987
include-utilshttps://docs.rs/include-utils/latest/include_utils/index.html
cargo-readmehttps://github.com/webern/cargo-readme
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.