Add Swift and Rust custom code pages#4206
Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Open
Add Swift and Rust custom code pages#4206devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Conversation
Co-Authored-By: bot_apk <apk@cognition.ai>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Contributor
|
Requested by: devin |
Contributor
|
🌿 Preview your docs: https://fern-preview-364f8014-880d-4f23-95ab-b526b3482dd1.docs.buildwithfern.com/learn Here are the markdown pages you've updated: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Swift and Rust custom code pages
Summary
Adds "Adding custom code" pages for Swift and Rust SDKs, and updates existing pages that list supported languages to include them. Previously, the custom code documentation covered TypeScript, Python, Go, Java, .NET, PHP, and Ruby — but omitted Swift and Rust despite both having generator sections in the SDK docs.
New files:
fern/products/sdks/overview/swift/custom-code.mdx— Custom code guide for Swiftfern/products/sdks/overview/rust/custom-code.mdx— Custom code guide for RustUpdated files:
fern/products/sdks/custom-code.mdx— Added Swift and Rust cards to the "Augmenting your SDK with custom code" CardGroupfern/products/sdks/sdks.yml— Registered the new pages in the Swift and Rust navigation sectionsfern/products/sdks/reference/generators-yml-reference.mdx— Added missing Rust card to the config reference CardGroup (Swift was already present)Review & Testing Checklist for Human
Deref(since Rust has no class inheritance) — confirm this is the recommended approach for extending Rust clients.extraDependenciesingenerators.yml), the Swift page suggests editingPackage.swiftdirectly and adding it to.fernignore. Verify whether the Swift generator has agenerators.ymlconfig option for dependencies that should be documented instead.custom-code.mdxdon't includeiconprops because noswift-light.svgorrust-light.svgexist in the icons directory. Confirm this renders acceptably or add icons./learn/sdks/generators/swift/custom-codeand/learn/sdks/generators/rust/custom-code.Notes
generators-yml-reference.mdxalready had a Swift config card but was missing Rust — this PR adds it.Link to Devin session: https://app.devin.ai/sessions/7c51ad589c8f4373802fb5c2bed873ab
Requested by: Fern Support