-
Notifications
You must be signed in to change notification settings - Fork 4
Conversation
77cf1d1
to
6af769a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a great addition, I hope actix will be out of beta soon and we will be able to use a non-beta release of this new actix-web-static-files
crate.
41d600d
to
1a838be
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a great addition to the project.
Could you describe the new process with the sha1 check in the PR head message, please?
4bbee4a
to
f06f367
Compare
f06f367
to
c2461e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the explanations!
It works on my machine 🎉
Wouldn't it be interesting to add meilisearch-http/.mini-dashboard.sha1
and meilisearch-http/mini-dashboard/
to the .gitignore
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this PR, could you just make sure that the gitignore is updated as curqui said?
6a7f4eb
to
e434b7d
Compare
e434b7d
to
77481d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! You can merge!
bors merge |
Build succeeded: |
This PR integrate the mini dashboard to transplant.
It adds a build feature
mini-dashboard
to statically add the mini-dashboard to the MeiliSearch binary. The mini-dashboard build feature is enabled by default and can be disabled by building MeiliSearch withcargo build --no-default-features
.meilisearch-http/mini-dashboard
mini-dashboard
feature is enabledclose #87
Shasum check and build optimizations.
In order to make sure that the right bundle for the mini-dashboard is downloaded, its shasum is computed and compared to the one specified in the
Cargo.toml
. If the shasums match, them the shasum is written to the.mini-dashboard.sha1
file for later comparison. On subsequent builds, the build script will check that both the mini-dashboard assets and the shasum file are found and that the shasum file content matches the one from the toml file. It will only preform a re-generation on the static dashboard files if it finds that either the dashboard is not present where it expects it to be, or if it finds out that it is outdated, by comparing the shasums.Notes
I had to rely on a custom patch of actix-web-static-files, to support actix-web 4 beta6. there is currently a pr on the official repo to support actix-web 4, but it most likely won't be merged until actix is stabilized.