update to servicepoint v0.15.0
This commit is contained in:
parent
01b3169020
commit
e5825819e6
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -514,7 +514,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "servicepoint"
|
name = "servicepoint"
|
||||||
version = "0.14.1"
|
version = "0.15.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "91a33bff7f9db5008748b23ca0c906c276fe00694390b681f004a55968a42cfe"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitvec",
|
"bitvec",
|
||||||
"bzip2",
|
"bzip2",
|
||||||
|
|
|
@ -18,7 +18,7 @@ crate-type = ["staticlib", "cdylib", "rlib"]
|
||||||
cbindgen = "0.28.0"
|
cbindgen = "0.28.0"
|
||||||
|
|
||||||
[dependencies.servicepoint]
|
[dependencies.servicepoint]
|
||||||
version = "0.14.1"
|
version = "0.15.0"
|
||||||
default-features = false
|
default-features = false
|
||||||
|
|
||||||
[dependencies.env_logger]
|
[dependencies.env_logger]
|
||||||
|
|
|
@ -159,23 +159,28 @@ typedef uint8_t CommandTag;
|
||||||
*
|
*
|
||||||
* # Examples
|
* # Examples
|
||||||
*
|
*
|
||||||
|
* create command without payload compression
|
||||||
* ```rust
|
* ```rust
|
||||||
* # use servicepoint::*;
|
* # use servicepoint::*;
|
||||||
* // create command without payload compression
|
|
||||||
* # let pixels = Bitmap::max_sized();
|
* # let pixels = Bitmap::max_sized();
|
||||||
* _ = BitmapCommand {
|
* _ = BitmapCommand {
|
||||||
* origin: Origin::ZERO,
|
* origin: Origin::ZERO,
|
||||||
* bitmap: pixels,
|
* bitmap: pixels,
|
||||||
* compression: CompressionCode::Uncompressed
|
* compression: CompressionCode::Uncompressed
|
||||||
* };
|
* };
|
||||||
|
* ```
|
||||||
*
|
*
|
||||||
* // create command with payload compressed with lzma and appropriate header flags
|
* create command with payload compressed with lzma and appropriate header flags
|
||||||
|
* ```rust
|
||||||
|
* # use servicepoint::*;
|
||||||
* # let pixels = Bitmap::max_sized();
|
* # let pixels = Bitmap::max_sized();
|
||||||
|
* # #[cfg(feature = "compression_lzma")] {
|
||||||
* _ = BitmapCommand {
|
* _ = BitmapCommand {
|
||||||
* origin: Origin::ZERO,
|
* origin: Origin::ZERO,
|
||||||
* bitmap: pixels,
|
* bitmap: pixels,
|
||||||
* compression: CompressionCode::Lzma
|
* compression: CompressionCode::Lzma
|
||||||
* };
|
* };
|
||||||
|
* # }
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
enum CompressionCode
|
enum CompressionCode
|
||||||
|
@ -331,8 +336,10 @@ typedef struct ClearCommand ClearCommand;
|
||||||
* # use servicepoint::*;
|
* # use servicepoint::*;
|
||||||
* # let connection = FakeConnection;
|
* # let connection = FakeConnection;
|
||||||
* let grid = CharGrid::from("Hello,\nWorld!");
|
* let grid = CharGrid::from("Hello,\nWorld!");
|
||||||
|
* # #[cfg(feature = "cp437")] {
|
||||||
* let grid = Cp437Grid::from(&grid);
|
* let grid = Cp437Grid::from(&grid);
|
||||||
* connection.send_command(Cp437GridCommand{ origin: Origin::ZERO, grid }).expect("send failed");
|
* connection.send_command(Cp437GridCommand{ origin: Origin::ZERO, grid }).expect("send failed");
|
||||||
|
* # }
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* ```rust
|
* ```rust
|
||||||
|
|
Loading…
Reference in a new issue