mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-31 16:06:31 +00:00 
			
		
		
		
	Merge #2238
2238: cargo: use resolver 2 r=MarinPostma a=happysalada # Pull Request ## What does this PR do? use resolver 2 from cargo. This enables mainly to propagate the `--no-default-features` flag to workspace crates. I mistakenly thought before that it was enough to have edition 2021 enabled. However it turns out that for virtual workspaces, this needs to be explicitely defined. https://doc.rust-lang.org/edition-guide/rust-2021/default-cargo-resolver.html This will also change a little how your dependencies are compiled. See https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#cargos-new-feature-resolver for more details. Just to give a bit more context, this is for usage in nixos. I have tried to do the upgrade today with the latest version, and the no default features flag is just ignored. Let me know if you need more details of course. ## PR checklist Please check if your PR fulfills the following requirements: - [ ] Does this PR fix an existing issue? - [ ] Have you read the contributing guidelines? - [ ] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: happysalada <raphael@megzari.com>
This commit is contained in:
		| @@ -1,4 +1,5 @@ | |||||||
| [workspace] | [workspace] | ||||||
|  | resolver = "2" | ||||||
| members = [ | members = [ | ||||||
|     "meilisearch-http", |     "meilisearch-http", | ||||||
|     "meilisearch-error", |     "meilisearch-error", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user