Skip to content

Proposal: Add support for extensions#185

Closed
jbruechert wants to merge 1 commit into
rust-transit:mainfrom
jbruechert:extensions
Closed

Proposal: Add support for extensions#185
jbruechert wants to merge 1 commit into
rust-transit:mainfrom
jbruechert:extensions

Conversation

@jbruechert

Copy link
Copy Markdown
Contributor

I need to be able to use extensions like https://developers.google.com/transit/gtfs/reference/google-transit-ticketing-extension.

This is one way to enable that, the alternative would be implementing everything in this crate.

I used serde_json::Value for the HashMap, because that seemed to be a reasonably generic type.
Embedding arbitrary serializable types at runtime unfortunately doesn't seem to be possible as serde::Serialize is not dyn compatible, so extensions can't be structs.

@jbruechert

Copy link
Copy Markdown
Contributor Author

rust-csv doesn't support this unfortunately :(

@jbruechert jbruechert closed this May 21, 2026
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