Skip to content

Add Swift and Rust custom code pages#4206

Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
fern/add-swift-rust-to-sdk-pages
Open

Add Swift and Rust custom code pages#4206
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
fern/add-swift-rust-to-sdk-pages

Conversation

@devin-ai-integration
Copy link
Contributor

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 Swift
  • fern/products/sdks/overview/rust/custom-code.mdx — Custom code guide for Rust

Updated files:

  • fern/products/sdks/custom-code.mdx — Added Swift and Rust cards to the "Augmenting your SDK with custom code" CardGroup
  • fern/products/sdks/sdks.yml — Registered the new pages in the Swift and Rust navigation sections
  • fern/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

  • Verify Swift/Rust code examples are idiomatic and match actual generated SDK patterns. The examples were modeled after existing language pages but adapted to Swift/Rust idioms. In particular, the Rust page uses a wrapper struct with Deref (since Rust has no class inheritance) — confirm this is the recommended approach for extending Rust clients.
  • Review the Swift custom dependencies section. Unlike Rust (which uses extraDependencies in generators.yml), the Swift page suggests editing Package.swift directly and adding it to .fernignore. Verify whether the Swift generator has a generators.yml config option for dependencies that should be documented instead.
  • Check that cards render correctly without icon SVGs. The Swift and Rust cards in custom-code.mdx don't include icon props because no swift-light.svg or rust-light.svg exist in the icons directory. Confirm this renders acceptably or add icons.
  • Deploy preview: navigate to the custom code overview page and verify the new cards link correctly to /learn/sdks/generators/swift/custom-code and /learn/sdks/generators/rust/custom-code.

Notes

  • Vale linting passed with 0 errors, 0 warnings, and 0 suggestions on all changed files.
  • The generators-yml-reference.mdx already 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

@devin-ai-integration devin-ai-integration bot requested a review from devalog as a code owner March 11, 2026 21:30
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@fern-api
Copy link
Contributor

fern-api bot commented Mar 11, 2026

Requested by: devin
Slack thread: View conversation

@github-actions
Copy link
Contributor

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.

1 participant