Skip to content

Commit

Permalink
Sort m.add_class
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Jan 11, 2024
1 parent 7d5a191 commit 2904365
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions binding/python/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions binding/python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@ mod bindings;

#[pymodule]
fn raftify(py: Python, m: &PyModule) -> PyResult<()> {
m.add_class::<bindings::cluster_join_ticket::PyClusterJoinTicket>()?;
m.add_class::<bindings::config::PyConfig>()?;
m.add_class::<bindings::raft_rs::config::PyRaftConfig>()?;
m.add_class::<bindings::raft_facade::PyRaftFacade>()?;
m.add_class::<bindings::logger::PyLogger>()?;
m.add_class::<bindings::logger::PyOverflowStrategy>()?;
m.add_class::<bindings::peers::PyPeers>()?;
m.add_class::<bindings::raft_client::PyRaftServiceClient>()?;
m.add_class::<bindings::raft_facade::PyRaftFacade>()?;
m.add_class::<bindings::raft_node::PyRaftNode>()?;
m.add_class::<bindings::logger::PyLogger>()?;
m.add_class::<bindings::logger::PyOverflowStrategy>()?;
m.add_class::<bindings::cluster_join_ticket::PyClusterJoinTicket>()?;
m.add_class::<bindings::raft_rs::config::PyRaftConfig>()?;
m.add_class::<bindings::raft_rs::readonly_option::PyReadOnlyOption>()?;

m.add_class::<bindings::raft_rs::eraftpb::conf_change_single::PyConfChangeSingle>()?;
m.add_class::<bindings::raft_rs::eraftpb::conf_change_transition::PyConfChangeTransition>()?;
m.add_class::<bindings::raft_rs::eraftpb::conf_change_type::PyConfChangeType>()?;
m.add_class::<bindings::raft_rs::eraftpb::conf_change_v2::PyConfChangeV2>()?;
m.add_class::<bindings::raft_rs::eraftpb::message::PyMessage>()?;
m.add_class::<bindings::raft_rs::eraftpb::message_type::PyMessageType>()?;
m.add_class::<bindings::raft_rs::eraftpb::entry::PyEntry>()?;
m.add_class::<bindings::raft_rs::eraftpb::conf_state::PyConfState>()?;
m.add_class::<bindings::raft_rs::eraftpb::entry_type::PyEntryType>()?;
m.add_class::<bindings::raft_rs::eraftpb::snapshot::PySnapshot>()?;
m.add_class::<bindings::raft_rs::eraftpb::entry::PyEntry>()?;
m.add_class::<bindings::raft_rs::eraftpb::message_type::PyMessageType>()?;
m.add_class::<bindings::raft_rs::eraftpb::message::PyMessage>()?;
m.add_class::<bindings::raft_rs::eraftpb::snapshot_metadata::PySnapshotMetadata>()?;
m.add_class::<bindings::raft_rs::eraftpb::conf_state::PyConfState>()?;
m.add_class::<bindings::raft_rs::eraftpb::snapshot::PySnapshot>()?;

m.add_function(wrap_pyfunction!(bindings::cli::cli_main, m)?)?;

Expand Down

0 comments on commit 2904365

Please sign in to comment.