feature request: specialize `super` and `crate` in x-rust-type

Open
#889 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
compilers

Research direction

Begin with typify’s handling of the x-rust-type extension and review issue #862 for the motivating workaround. Determine where Rust paths containing super or crate are rendered, then confirm the generated type compiles without the invalid ::crate form.

Written by the indexing model from the issue text.

Description

I'm using TypeSpec with typify to make rust type up to date with json schema.

It would be nice to have a way to use super and crate in x-rust-type (it doesn't compile because rust doesn't allow ::crate), so that I can workaround #862 .

Dominant language
Rust
Stars
898
Forks
114
Avg merge
4h 18m
Merged PRs (30d)
14

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from oxidecomputer/typify

All issues in oxidecomputer/typify

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.