Skip to content

Commit

Permalink
Switch to edition 2018
Browse files Browse the repository at this point in the history
  • Loading branch information
chifflier committed Nov 30, 2020
1 parent 8306b7f commit efd8b28
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 19 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ license = "LGPL-2.1+"
homepage = "https://github.com/rusticata/ssh-parser"
repository = "https://github.com/rusticata/ssh-parser"
documentation = "https://docs.rs/ssh-parser"
edition = "2018"

[features]
integers = ["num-bigint", "num-traits"]
Expand Down
19 changes: 1 addition & 18 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,12 @@
//! The code is available on [GitHub](https://github.com/rusticata/ssh-parser)
//! and is part of the [Rusticata](https://github.com/rusticata) project.

#[macro_use]
extern crate rusticata_macros;

#[macro_use]
extern crate nom;

#[cfg(feature = "serialize")]
#[macro_use]
extern crate cookie_factory;

#[cfg(feature = "integers")]
extern crate num_bigint;
#[cfg(feature = "integers")]
extern crate num_traits;

#[cfg(feature = "integers")]
pub mod mpint;
#[cfg(feature = "serialize")]
/// SSH packet crafting functions
pub mod serialize;
/// SSH parsing functions
pub mod ssh;

mod ssh;
#[cfg(test)]
mod tests;

Expand Down
4 changes: 3 additions & 1 deletion src/ssh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
//!
//! This module contains parsing functions for the SSH 2.0 protocol. It is also
//! compatible with obsolete version negotiation.
use std::str;

use nom;
use nom::character::streaming::{crlf, line_ending, not_line_ending};
use nom::error::{Error, ErrorKind};
use nom::number::streaming::{be_u32, be_u8};
use nom::*;
use nom::{take_until, Err, IResult};
use rusticata_macros::error_if;
use std::str;

/// SSH Protocol Version Exchange
///
Expand Down

0 comments on commit efd8b28

Please sign in to comment.