mirror of
				https://github.com/Swatinem/rust-cache.git
				synced 2025-10-31 16:23:48 +00:00 
			
		
		
		
	Add jemalloc to test -sys style dependencies
				
					
				
			This commit is contained in:
		
							parent
							
								
									fd201ad913
								
							
						
					
					
						commit
						9de8f90afb
					
				
							
								
								
									
										3
									
								
								.github/workflows/simple.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/simple.yml
									
									
									
									
										vendored
									
									
								
							| @ -9,7 +9,7 @@ jobs: | |||||||
|       matrix: |       matrix: | ||||||
|         os: [ubuntu-latest, macos-latest, windows-latest] |         os: [ubuntu-latest, macos-latest, windows-latest] | ||||||
| 
 | 
 | ||||||
|     name: Test `cargo check/test` on ${{ matrix.os }} |     name: Test `cargo check/test/build` on ${{ matrix.os }} | ||||||
|     runs-on: ${{ matrix.os }} |     runs-on: ${{ matrix.os }} | ||||||
| 
 | 
 | ||||||
|     env: |     env: | ||||||
| @ -27,4 +27,5 @@ jobs: | |||||||
|       - run: | |       - run: | | ||||||
|           cargo check |           cargo check | ||||||
|           cargo test |           cargo test | ||||||
|  |           cargo build --release | ||||||
|         working-directory: tests |         working-directory: tests | ||||||
|  | |||||||
							
								
								
									
										21
									
								
								tests/Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										21
									
								
								tests/Cargo.lock
									
									
									
										generated
									
									
									
								
							| @ -523,6 +523,7 @@ name = "rust-cache" | |||||||
| version = "0.1.0" | version = "0.1.0" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "reqwest", |  "reqwest", | ||||||
|  |  "tikv-jemallocator", | ||||||
|  "watto", |  "watto", | ||||||
| ] | ] | ||||||
| 
 | 
 | ||||||
| @ -658,6 +659,26 @@ dependencies = [ | |||||||
|  "syn", |  "syn", | ||||||
| ] | ] | ||||||
| 
 | 
 | ||||||
|  | [[package]] | ||||||
|  | name = "tikv-jemalloc-sys" | ||||||
|  | version = "0.5.4+5.3.0-patched" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  | checksum = "9402443cb8fd499b6f327e40565234ff34dbda27460c5b47db0db77443dd85d1" | ||||||
|  | dependencies = [ | ||||||
|  |  "cc", | ||||||
|  |  "libc", | ||||||
|  | ] | ||||||
|  | 
 | ||||||
|  | [[package]] | ||||||
|  | name = "tikv-jemallocator" | ||||||
|  | version = "0.5.4" | ||||||
|  | source = "registry+https://github.com/rust-lang/crates.io-index" | ||||||
|  | checksum = "965fe0c26be5c56c94e38ba547249074803efd52adfb66de62107d95aab3eaca" | ||||||
|  | dependencies = [ | ||||||
|  |  "libc", | ||||||
|  |  "tikv-jemalloc-sys", | ||||||
|  | ] | ||||||
|  | 
 | ||||||
| [[package]] | [[package]] | ||||||
| name = "tinyvec" | name = "tinyvec" | ||||||
| version = "1.6.0" | version = "1.6.0" | ||||||
|  | |||||||
| @ -8,3 +8,6 @@ edition = "2021" | |||||||
| [dependencies] | [dependencies] | ||||||
| reqwest = "0.11.11" | reqwest = "0.11.11" | ||||||
| watto = { git = "https://github.com/getsentry/watto", rev = "d71c8218506bddba102a124a460d64da25e303dc", features = ["strings"] } | watto = { git = "https://github.com/getsentry/watto", rev = "d71c8218506bddba102a124a460d64da25e303dc", features = ["strings"] } | ||||||
|  | 
 | ||||||
|  | [target.'cfg(not(target_env = "msvc"))'.dependencies] | ||||||
|  | tikv-jemallocator = "0.5" | ||||||
|  | |||||||
| @ -1,3 +1,10 @@ | |||||||
|  | #[cfg(not(target_env = "msvc"))] | ||||||
|  | use tikv_jemallocator::Jemalloc; | ||||||
|  | 
 | ||||||
|  | #[cfg(not(target_env = "msvc"))] | ||||||
|  | #[global_allocator] | ||||||
|  | static GLOBAL: Jemalloc = Jemalloc; | ||||||
|  | 
 | ||||||
| fn main() { | fn main() { | ||||||
|     println!("Hello, world!"); |     println!("Hello, world!"); | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user