mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 01:46:28 +00:00 
			
		
		
		
	Merge #4547
4547: Fix milli/Cargo.toml for usage as dependency via git r=dureuill a=Toromyx # Pull Request ## Related issues/discussions This enables th usage of `milli` [via git repository](https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#specifying-dependencies-from-git-repositories) as mentioned in <https://github.com/meilisearch/meilisearch/issues/3367#issuecomment-1422613815>, <https://github.com/meilisearch/meilisearch/discussions/1523#discussioncomment-1039338>, and <https://github.com/meilisearch/meilisearch/discussions/1981#discussioncomment-1771568> ## What does this PR do? Trying to depend on `milli` like ``` [dependencies.milli] git = "https://github.com/meilisearch/meilisearch.git" tag = "v1.7.4" ``` leads to the following error: ``` error: failed to select a version for the requirement `candle-core = "^0.3.1"` candidate versions found which didn't match: 0.4.2 location searched: Git repository https://github.com/huggingface/candle.git required by package `milli v1.7.4 (https://github.com/meilisearch/meilisearch.git?tag=v1.7.4#0259ad60)` ``` because the default branch of <https://github.com/huggingface/candle> does not contain the correct version. To fix this, i added a `rev="..."` entry in the relevant dependencies, specifiyng the commit already present in the `Cargo.lock` file. I also updated the version to the one in the Cargo.lock. This also updated `candle-kernels` sub-dependency from 0.3.1 to 0.3.3 which is probably correct? ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] 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: Thomas Gauges <thomas.gauges@gmail.com>
This commit is contained in:
		
							
								
								
									
										25
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										25
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							@@ -555,6 +555,17 @@ dependencies = [
 | 
			
		||||
 "syn 2.0.48",
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
[[package]]
 | 
			
		||||
name = "bindgen_cuda"
 | 
			
		||||
version = "0.1.5"
 | 
			
		||||
source = "registry+https://github.com/rust-lang/crates.io-index"
 | 
			
		||||
checksum = "1f8489af5b7d17a81bffe37e0f4d6e1e4de87c87329d05447f22c35d95a1227d"
 | 
			
		||||
dependencies = [
 | 
			
		||||
 "glob",
 | 
			
		||||
 "num_cpus",
 | 
			
		||||
 "rayon",
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
[[package]]
 | 
			
		||||
name = "bit-set"
 | 
			
		||||
version = "0.5.3"
 | 
			
		||||
@@ -731,7 +742,7 @@ dependencies = [
 | 
			
		||||
[[package]]
 | 
			
		||||
name = "candle-core"
 | 
			
		||||
version = "0.3.3"
 | 
			
		||||
source = "git+https://github.com/huggingface/candle.git#5270224f407502b82fe90bc2622894ce3871b002"
 | 
			
		||||
source = "git+https://github.com/huggingface/candle.git?rev=5270224f407502b82fe90bc2622894ce3871b002#5270224f407502b82fe90bc2622894ce3871b002"
 | 
			
		||||
dependencies = [
 | 
			
		||||
 "byteorder",
 | 
			
		||||
 "candle-kernels",
 | 
			
		||||
@@ -752,18 +763,16 @@ dependencies = [
 | 
			
		||||
 | 
			
		||||
[[package]]
 | 
			
		||||
name = "candle-kernels"
 | 
			
		||||
version = "0.3.1"
 | 
			
		||||
source = "git+https://github.com/huggingface/candle.git#f4fcf6090045ac44122fd5f0a7e46db6e3e16528"
 | 
			
		||||
version = "0.3.3"
 | 
			
		||||
source = "git+https://github.com/huggingface/candle.git?rev=5270224f407502b82fe90bc2622894ce3871b002#5270224f407502b82fe90bc2622894ce3871b002"
 | 
			
		||||
dependencies = [
 | 
			
		||||
 "anyhow",
 | 
			
		||||
 "glob",
 | 
			
		||||
 "rayon",
 | 
			
		||||
 "bindgen_cuda",
 | 
			
		||||
]
 | 
			
		||||
 | 
			
		||||
[[package]]
 | 
			
		||||
name = "candle-nn"
 | 
			
		||||
version = "0.3.3"
 | 
			
		||||
source = "git+https://github.com/huggingface/candle.git#5270224f407502b82fe90bc2622894ce3871b002"
 | 
			
		||||
source = "git+https://github.com/huggingface/candle.git?rev=5270224f407502b82fe90bc2622894ce3871b002#5270224f407502b82fe90bc2622894ce3871b002"
 | 
			
		||||
dependencies = [
 | 
			
		||||
 "candle-core",
 | 
			
		||||
 "half 2.3.1",
 | 
			
		||||
@@ -777,7 +786,7 @@ dependencies = [
 | 
			
		||||
[[package]]
 | 
			
		||||
name = "candle-transformers"
 | 
			
		||||
version = "0.3.3"
 | 
			
		||||
source = "git+https://github.com/huggingface/candle.git#5270224f407502b82fe90bc2622894ce3871b002"
 | 
			
		||||
source = "git+https://github.com/huggingface/candle.git?rev=5270224f407502b82fe90bc2622894ce3871b002#5270224f407502b82fe90bc2622894ce3871b002"
 | 
			
		||||
dependencies = [
 | 
			
		||||
 "byteorder",
 | 
			
		||||
 "candle-core",
 | 
			
		||||
 
 | 
			
		||||
@@ -71,9 +71,9 @@ itertools = "0.11.0"
 | 
			
		||||
puffin = "0.16.0"
 | 
			
		||||
 | 
			
		||||
csv = "1.3.0"
 | 
			
		||||
candle-core = { git = "https://github.com/huggingface/candle.git", version = "0.3.1" }
 | 
			
		||||
candle-transformers = { git = "https://github.com/huggingface/candle.git", version = "0.3.1" }
 | 
			
		||||
candle-nn = { git = "https://github.com/huggingface/candle.git", version = "0.3.1" }
 | 
			
		||||
candle-core = { git = "https://github.com/huggingface/candle.git", rev="5270224f407502b82fe90bc2622894ce3871b002", version = "0.3.3" }
 | 
			
		||||
candle-transformers = { git = "https://github.com/huggingface/candle.git", rev="5270224f407502b82fe90bc2622894ce3871b002", version = "0.3.3" }
 | 
			
		||||
candle-nn = { git = "https://github.com/huggingface/candle.git", rev="5270224f407502b82fe90bc2622894ce3871b002", version = "0.3.3" }
 | 
			
		||||
tokenizers = { git = "https://github.com/huggingface/tokenizers.git", tag = "v0.14.1", version = "0.14.1", default_features = false, features = [
 | 
			
		||||
    "onig",
 | 
			
		||||
] }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user