Skip to content

Update image and disable image default features#30

Merged
jihchi merged 4 commits intojihchi:mainfrom
lucasmerlin:update-image-and-disable-default-features
Oct 4, 2024
Merged

Update image and disable image default features#30
jihchi merged 4 commits intojihchi:mainfrom
lucasmerlin:update-image-and-disable-default-features

Conversation

@lucasmerlin
Copy link
Copy Markdown
Contributor

@lucasmerlin lucasmerlin commented Oct 4, 2024

Hi, this PR updates the image crate to 0.25 and disables image default features, so that you don't need to compile all image formats if you use dify as a library. I've added a default feature to dify that enables the image default features, so for users that install dify via cargo install dify, nothing should change.

I had to update a couple of test fixtures, I guess because the encoding of the image crate changed slightly. Also seems like the tests now behave identical in ci and locally, so I was able to remove those extra ci fixtures.

@lucasmerlin lucasmerlin force-pushed the update-image-and-disable-default-features branch from c2ae130 to 5f53e0b Compare October 4, 2024 10:38
Copy link
Copy Markdown
Owner

@jihchi jihchi left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution! The tests/e2e.rs looks better now! :chef-kiss:

@jihchi jihchi merged commit ae24128 into jihchi:main Oct 4, 2024
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.

2 participants