Skip to content

feat: remote urls#95

Closed
q-uint wants to merge 2 commits intodfinity:mainfrom
q-uint:feat/from-str
Closed

feat: remote urls#95
q-uint wants to merge 2 commits intodfinity:mainfrom
q-uint:feat/from-str

Conversation

@q-uint
Copy link
Copy Markdown
Contributor

@q-uint q-uint commented Nov 5, 2025

Initial draft to support non-file-based did generation.

  • Update Rust code to support direct generation from strings.
  • Unlocks features such as:
    • remote urls
    • service:candid from a canister directly

Ref: #83

@ilbertt

Comment on lines +63 to +67
didFile?: string;
/**
*
*/
didRemoteUrl?: string;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about we keep only one argument here and specify in the doc that it can be a local path or remote URL? Then, we can simply check in the implementation if it starts with http or https and perform the fetch

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add tests for remote URLs here as well, but I can do it in a follow-up PR

@q-uint q-uint closed this by deleting the head repository Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants