Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update sovereign.toml resoultion to relative path #855

Merged
merged 2 commits into from
Sep 15, 2023

Conversation

vlopes11
Copy link
Contributor

@vlopes11 vlopes11 commented Sep 13, 2023

Prior to this commit, the resolution of the sovereign.toml depended on unstable features of proc-macro2, available only for recent toolchain versions.

This commit introduces the path resolution of the manifest file to recurse from the target directory. It will allow endpoints to set their own manifest file, replacing the ones bundled with the modules.

It will also read an optional SOVEREIGN_MANIFEST that, if set, will override the manifest path. The manifest path is expected to be resolved at compile time, making it possible to construct const/static structures with it.

Closes #786

Prior to this commit, the resolution of the sovereign.toml dependend on
unstable features of proc-macro2, available only for recent toolchain
versions.

This commit introduces the path resolution of the manifest file to
recurse from the target directory. It will allow endpoints to set their
own manifest file, replacing the ones bundled with the modules.

It will also read an optional `SOVEREIGN_MANIFEST` that, if set, will
override the manifest path. The manifest path is expected to be resolved
at compile time, making it possible to construct const/static structures
with it.
@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Merging #855 (7e45cab) into nightly (8ea821b) will increase coverage by 0.1%.
Report is 3 commits behind head on nightly.
The diff coverage is 78.7%.

Files Changed Coverage Δ
module-system/sov-modules-macros/src/manifest.rs 86.7% <78.7%> (+24.9%) ⬆️

... and 4 files with indirect coverage changes

@preston-evans98 preston-evans98 added this pull request to the merge queue Sep 15, 2023
Merged via the queue into nightly with commit f662415 Sep 15, 2023
@preston-evans98 preston-evans98 deleted the vlopes11/feature/relative-manifest branch September 15, 2023 18:27
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.

sovereign.toml for SDK config
2 participants