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" | ||||
| version = "0.0.0" | ||||
| dependencies = [ | ||||
|  "thiserror 2.0.11", | ||||
|  "uniffi", | ||||
| ] | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										50
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										50
									
								
								README.md
									
										
									
									
									
								
							|  | @ -5,8 +5,41 @@ 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). | ||||
| 
 | ||||
| Also take a look at the main project [README](https://git.berlin.ccc.de/servicepoint/servicepoint/src/branch/main/README.md) for more | ||||
| information. | ||||
| ## Example | ||||
| 
 | ||||
| ```ruby | ||||
| connection = Connection.new("172.23.42.29:2342") | ||||
| 
 | ||||
| pixels = Bitmap.new_max_sized | ||||
| x_offset = 0 | ||||
| loop do | ||||
| 
 | ||||
|   pixels.fill(false) | ||||
| 
 | ||||
|   (0..((pixels.height) -1)).each do |y| | ||||
|     pixels.set((y + x_offset) % pixels.width, y, true); | ||||
|   end | ||||
| 
 | ||||
|   command = Command.bitmap_linear_win(0, 0, pixels, CompressionCode::UNCOMPRESSED) | ||||
| 
 | ||||
|   connection.send(command) | ||||
|   sleep 0.0005 | ||||
| 
 | ||||
|   x_offset += 1 | ||||
| end | ||||
| ``` | ||||
| 
 | ||||
| ## Installation | ||||
| 
 | ||||
| Including this repository as a submodule and building from source is the recommended way of using the library. | ||||
| 
 | ||||
| ```bash | ||||
| git submodule add https://git.berlin.ccc.de/servicepoint/servicepoint.git | ||||
| git commit -m "add servicepoint submodule" | ||||
| ``` | ||||
| 
 | ||||
| Run `generate-binding.sh` to regenerate all bindings. This will also build `libservicepoint.so` (or equivalent on your | ||||
| platform). | ||||
| 
 | ||||
| ## Note on stability | ||||
| 
 | ||||
|  | @ -21,14 +54,7 @@ You can absolutely use it, and it works, but expect minor breaking changes with | |||
| - You will not get rust backtraces in release builds of the native code | ||||
| - Panic messages will work (PanicException) | ||||
| 
 | ||||
| ## Installation | ||||
| ## Everything else | ||||
| 
 | ||||
| Including this repository as a submodule and building from source is the recommended way of using the library. | ||||
| 
 | ||||
| ```bash | ||||
| git submodule add https://git.berlin.ccc.de/servicepoint/servicepoint.git | ||||
| git commit -m "add servicepoint submodule" | ||||
| ``` | ||||
| 
 | ||||
| Run `generate-binding.sh` to regenerate all bindings. This will also build `libservicepoint.so` (or equivalent on your | ||||
| platform). | ||||
| 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" | ||||
| publish = false | ||||
| 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] | ||||
| uniffi = { version = "0.25.3", features = ["build"] } | ||||
| 
 | ||||
| [dependencies] | ||||
| 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