This commit is contained in:
		
							parent
							
								
									31dac283ef
								
							
						
					
					
						commit
						fae6ed4f96
					
				
					 3 changed files with 37 additions and 19 deletions
				
			
		
							
								
								
									
										1
									
								
								Cargo.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								Cargo.lock
									
										
									
										generated
									
									
									
								
							|  | @ -682,7 +682,6 @@ dependencies = [ | ||||||
| name = "uniffi-bindgen" | name = "uniffi-bindgen" | ||||||
| version = "0.0.0" | version = "0.0.0" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "thiserror 2.0.11", |  | ||||||
|  "uniffi", |  "uniffi", | ||||||
| ] | ] | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
							
								
								
									
										48
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										48
									
								
								README.md
									
										
									
									
									
								
							|  | @ -5,21 +5,29 @@ Display" or "Airport Display". | ||||||
| 
 | 
 | ||||||
| This crate contains C# bindings for the [servicepoint](https://git.berlin.ccc.de/servicepoint/servicepoint) library based on [servicepoint-binding-uniffi](https://git.berlin.ccc.de/servicepoint/servicepoint-binding-uniffi). | This crate contains C# bindings for the [servicepoint](https://git.berlin.ccc.de/servicepoint/servicepoint) library based on [servicepoint-binding-uniffi](https://git.berlin.ccc.de/servicepoint/servicepoint-binding-uniffi). | ||||||
| 
 | 
 | ||||||
| Also take a look at the main project [README](https://git.berlin.ccc.de/servicepoint/servicepoint/src/branch/main/README.md) for more | ## Example | ||||||
| information. |  | ||||||
| 
 | 
 | ||||||
| ## Note on stability | ```ruby | ||||||
|  | connection = Connection.new("172.23.42.29:2342") | ||||||
| 
 | 
 | ||||||
| This library is still in early development. | pixels = Bitmap.new_max_sized | ||||||
| You can absolutely use it, and it works, but expect minor breaking changes with every version bump. | x_offset = 0 | ||||||
|  | loop do | ||||||
| 
 | 
 | ||||||
| ## Notes on differences to rust library |   pixels.fill(false) | ||||||
| 
 | 
 | ||||||
| - Performance will not be as good as the rust version: |   (0..((pixels.height) -1)).each do |y| | ||||||
|     - most objects are reference counted. |     pixels.set((y + x_offset) % pixels.width, y, true); | ||||||
|     - objects with mutating methods will also have a MRSW lock |   end | ||||||
| - You will not get rust backtraces in release builds of the native code | 
 | ||||||
| - Panic messages will work (PanicException) |   command = Command.bitmap_linear_win(0, 0, pixels, CompressionCode::UNCOMPRESSED) | ||||||
|  | 
 | ||||||
|  |   connection.send(command) | ||||||
|  |   sleep 0.0005 | ||||||
|  | 
 | ||||||
|  |   x_offset += 1 | ||||||
|  | end | ||||||
|  | ``` | ||||||
| 
 | 
 | ||||||
| ## Installation | ## Installation | ||||||
| 
 | 
 | ||||||
|  | @ -32,3 +40,21 @@ git commit -m "add servicepoint submodule" | ||||||
| 
 | 
 | ||||||
| Run `generate-binding.sh` to regenerate all bindings. This will also build `libservicepoint.so` (or equivalent on your | Run `generate-binding.sh` to regenerate all bindings. This will also build `libservicepoint.so` (or equivalent on your | ||||||
| platform). | platform). | ||||||
|  | 
 | ||||||
|  | ## Note on stability | ||||||
|  | 
 | ||||||
|  | This library is still in early development. | ||||||
|  | You can absolutely use it, and it works, but expect minor breaking changes with every version bump. | ||||||
|  | 
 | ||||||
|  | ## Notes on differences to rust library | ||||||
|  | 
 | ||||||
|  | - Performance will not be as good as the rust version: | ||||||
|  |   - most objects are reference counted. | ||||||
|  |   - objects with mutating methods will also have a MRSW lock | ||||||
|  | - You will not get rust backtraces in release builds of the native code | ||||||
|  | - Panic messages will work (PanicException) | ||||||
|  | 
 | ||||||
|  | ## Everything else | ||||||
|  | 
 | ||||||
|  | Look at the main project [README](https://git.berlin.ccc.de/servicepoint/servicepoint/src/branch/main/README.md) for | ||||||
|  | further information. | ||||||
|  |  | ||||||
|  | @ -2,16 +2,9 @@ | ||||||
| name = "uniffi-bindgen" | name = "uniffi-bindgen" | ||||||
| publish = false | publish = false | ||||||
| edition = "2021" | edition = "2021" | ||||||
| license = "GPL-3.0-or-later" |  | ||||||
| description = "C bindings for the servicepoint crate." |  | ||||||
| homepage = "https://git.berlin.ccc.de/servicepoint/servicepoint-binding-ruby" |  | ||||||
| repository = "https://git.berlin.ccc.de/servicepoint/servicepoint-binding-ruby.git" |  | ||||||
| #readme = "README.md" |  | ||||||
| keywords = ["cccb", "cccb-servicepoint", "uniffi"] |  | ||||||
| 
 | 
 | ||||||
| [build-dependencies] | [build-dependencies] | ||||||
| uniffi = { version = "0.25.3", features = ["build"] } | uniffi = { version = "0.25.3", features = ["build"] } | ||||||
| 
 | 
 | ||||||
| [dependencies] | [dependencies] | ||||||
| uniffi = { version = "0.25.3", features = ["cli"] } | uniffi = { version = "0.25.3", features = ["cli"] } | ||||||
| thiserror = "2.0" |  | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Vinzenz Schroeter
						Vinzenz Schroeter