Skip to content

Expose list of known namespaces - #7

Merged
reknih merged 1 commit into
typst:mainfrom
NiklasEi:expose-known-namespaces
Aug 7, 2026
Merged

Expose list of known namespaces#7
reknih merged 1 commit into
typst:mainfrom
NiklasEi:expose-known-namespaces

Conversation

@NiklasEi

@NiklasEi NiklasEi commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Expose the list of known namespaces. I moved all the namespace related things into a macro to keep everything consistent.

Context: LaurenzV/krilla#408 (comment)

The description of XmpJob looked like copy paste from XmpJobManagement and I changed it. jobs was also writing the wrong property.

@laurmaedje laurmaedje left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I get the desire for a macro, but honestly I find the non-macro version more readable and easier to understand, not least because the URLs are all together and the prefixes are all together. I think the bit of extra verbosity in rarely edited code is not a big deal.

Comment thread src/lib.rs Outdated
@NiklasEi
NiklasEi force-pushed the expose-known-namespaces branch from 7a00f39 to 9810bc0 Compare August 5, 2026 19:35
@NiklasEi

NiklasEi commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

I reverted the macro and moved the jobs changes to a separate PR. The list is now an associated const slice.

@reknih
reknih merged commit 61b88dd into typst:main Aug 7, 2026
1 check passed
@reknih

reknih commented Aug 7, 2026

Copy link
Copy Markdown
Member

Thanks!

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.

3 participants