diff --git a/Cargo.toml b/Cargo.toml index fe6b535..5eebbcc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,15 +1,12 @@ [package] -name = "smtp-codec" -description = "Low-level SMTP Parser and Serializer" +name = "instant-smtp" +description = "Low-level sans-I/O SMTP protocol implementation" keywords = ["email", "smtp", "parser", "codec"] -version = "0.2.0" -authors = ["Damian Poddebniak "] -repository = "https://github.com/duesee/smtp-codec" +version = "0.1.0" +repository = "https://github.com/InstantDomain/instant-smtp" license = "MIT OR Apache-2.0" edition = "2018" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [features] default = [] serdex = ["serde"] diff --git a/README.md b/README.md index 0e9f893..0d74a6d 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,3 @@ -[![CI](https://github.com/duesee/smtp-codec/actions/workflows/ci.yml/badge.svg)](https://github.com/duesee/smtp-codec/actions/workflows/ci.yml) -[![Scheduled](https://github.com/duesee/smtp-codec/actions/workflows/scheduled.yml/badge.svg)](https://github.com/duesee/smtp-codec/actions/workflows/scheduled.yml) -[![docs](https://docs.rs/smtp-codec/badge.svg)](https://docs.rs/smtp-codec) +# instant-smtp: low-level sans-I/O SMTP implementation -# SMTP Protocol - -This crate provides some types and many parsers for SMTP. Many things are there, but it is still in a very rough state. - -# License - -This crate is dual-licensed under Apache 2.0 and MIT terms. +Forked from smtp-codec in November 2022. diff --git a/SECURITY.md b/SECURITY.md deleted file mode 100644 index aa4806c..0000000 --- a/SECURITY.md +++ /dev/null @@ -1,7 +0,0 @@ -# Security Policy - -## Reporting a Vulnerability - -Feel free to open a public issue here if you found a security vulnerability. - -If, for whatever reason, you prefer to not make it public, please write an email to poddebniak@mailbox.org diff --git a/examples/parse_command.rs b/examples/parse_command.rs index ed389d1..a1d9ea3 100644 --- a/examples/parse_command.rs +++ b/examples/parse_command.rs @@ -1,6 +1,6 @@ use std::io::Write; -use smtp_codec::parse::command::command; +use instant_smtp::parse::command::command; fn main() -> std::io::Result<()> { let mut args = std::env::args(); diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index ade9b9a..74c323c 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -1,8 +1,7 @@ [package] -name = "smtp-codec-fuzz" +name = "instant-smtp-fuzz" version = "0.0.0" -authors = ["Automatically generated"] publish = false edition = "2018" @@ -11,9 +10,7 @@ cargo-fuzz = true [dependencies] libfuzzer-sys = "0.4" - -[dependencies.smtp-codec] -path = ".." +instant-smtp = { path = ".." } # Prevent this from interfering with workspaces [workspace] diff --git a/fuzz/fuzz_targets/command.rs b/fuzz/fuzz_targets/command.rs index 2b96a20..ea7b9a6 100644 --- a/fuzz/fuzz_targets/command.rs +++ b/fuzz/fuzz_targets/command.rs @@ -1,6 +1,6 @@ #![no_main] use libfuzzer_sys::fuzz_target; -use smtp_codec::parse::command::command; +use instant_smtp::parse::command::command; fuzz_target!(|data: &[u8]| { if let Ok((_, cmd)) = command(data) { diff --git a/tests/trace.rs b/tests/trace.rs index d4a8416..eec02f7 100644 --- a/tests/trace.rs +++ b/tests/trace.rs @@ -1,11 +1,11 @@ -use nom::FindSubstring; -use smtp_codec::{ +use instant_smtp::{ parse::{ command::command, response::{ehlo_ok_rsp, Greeting, Reply_lines}, }, types::Command, }; +use nom::FindSubstring; fn parse_trace(mut trace: &[u8]) { let (rem, greeting) = Greeting(trace).unwrap();