mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-18 10:00:14 +01:00
change cbindgen sorting to None
This commit is contained in:
parent
2b54b944b5
commit
341c0ef2cd
|
@ -192,9 +192,7 @@ impl TryFrom<Packet> for Command {
|
|||
fn try_from(packet: Packet) -> Result<Self, Self::Error> {
|
||||
let Packet {
|
||||
header: Header {
|
||||
command_code,
|
||||
a,
|
||||
..
|
||||
command_code, a, ..
|
||||
},
|
||||
..
|
||||
} = packet;
|
||||
|
@ -274,7 +272,8 @@ impl Command {
|
|||
compression: CompressionCode,
|
||||
) -> Result<Command, TryFromPacketError> {
|
||||
let Packet {
|
||||
header: Header {
|
||||
header:
|
||||
Header {
|
||||
command_code: _,
|
||||
a: tiles_x,
|
||||
b: pixels_y,
|
||||
|
@ -306,7 +305,8 @@ impl Command {
|
|||
command: Command,
|
||||
) -> Result<Command, TryFromPacketError> {
|
||||
let Packet {
|
||||
header: Header {
|
||||
header:
|
||||
Header {
|
||||
command_code: _,
|
||||
a,
|
||||
b,
|
||||
|
@ -329,7 +329,8 @@ impl Command {
|
|||
packet: Packet,
|
||||
) -> Result<(SpBitVec, CompressionCode), TryFromPacketError> {
|
||||
let Packet {
|
||||
header: Header {
|
||||
header:
|
||||
Header {
|
||||
b: length,
|
||||
c: sub,
|
||||
d: reserved,
|
||||
|
@ -363,7 +364,8 @@ impl Command {
|
|||
packet: &Packet,
|
||||
) -> Result<Command, TryFromPacketError> {
|
||||
let Packet {
|
||||
header: Header {
|
||||
header:
|
||||
Header {
|
||||
command_code: _,
|
||||
a: x,
|
||||
b: y,
|
||||
|
@ -390,7 +392,8 @@ impl Command {
|
|||
packet: &Packet,
|
||||
) -> Result<Command, TryFromPacketError> {
|
||||
let Packet {
|
||||
header: Header {
|
||||
header:
|
||||
Header {
|
||||
command_code: _,
|
||||
a,
|
||||
b,
|
||||
|
@ -420,7 +423,8 @@ impl Command {
|
|||
packet: &Packet,
|
||||
) -> Result<Command, TryFromPacketError> {
|
||||
let Packet {
|
||||
header: Header {
|
||||
header:
|
||||
Header {
|
||||
command_code: _,
|
||||
a,
|
||||
b,
|
||||
|
|
|
@ -2,6 +2,8 @@ language = "C"
|
|||
include_version = true
|
||||
cpp_compat = true
|
||||
|
||||
autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
|
||||
|
||||
############################ Code Style Options ################################
|
||||
|
||||
braces = "SameLine"
|
||||
|
@ -15,7 +17,7 @@ line_endings = "LF"
|
|||
############################# Codegen Options ##################################
|
||||
|
||||
style = "both"
|
||||
sort_by = "Name"
|
||||
sort_by = "None"
|
||||
usize_is_size_t = true
|
||||
|
||||
[parse]
|
||||
|
@ -23,3 +25,7 @@ parse_deps = false
|
|||
|
||||
[parse.expand]
|
||||
all_features = true
|
||||
|
||||
[export]
|
||||
include = []
|
||||
exclude = []
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -26,30 +26,22 @@
|
|||
//! }
|
||||
//! ```
|
||||
|
||||
pub use bit_vec::*;
|
||||
pub use brightness_grid::*;
|
||||
pub use byte_slice::*;
|
||||
pub use command::*;
|
||||
pub use connection::*;
|
||||
pub use constants::*;
|
||||
pub use cp437_grid::*;
|
||||
pub use packet::*;
|
||||
pub use pixel_grid::*;
|
||||
pub use crate::bit_vec::*;
|
||||
pub use crate::brightness_grid::*;
|
||||
pub use crate::byte_slice::*;
|
||||
pub use crate::command::*;
|
||||
pub use crate::connection::*;
|
||||
pub use crate::constants::*;
|
||||
pub use crate::cp437_grid::*;
|
||||
pub use crate::packet::*;
|
||||
pub use crate::pixel_grid::*;
|
||||
|
||||
mod bit_vec;
|
||||
|
||||
mod brightness_grid;
|
||||
|
||||
mod command;
|
||||
|
||||
mod connection;
|
||||
|
||||
mod packet;
|
||||
|
||||
mod pixel_grid;
|
||||
|
||||
mod byte_slice;
|
||||
|
||||
mod cp437_grid;
|
||||
|
||||
mod command;
|
||||
mod connection;
|
||||
mod constants;
|
||||
mod cp437_grid;
|
||||
mod packet;
|
||||
mod pixel_grid;
|
||||
|
|
Loading…
Reference in a new issue