Rebrand fork as instant-smtp

This commit is contained in:
Dirkjan Ochtman 2022-11-21 14:17:29 -08:00
parent 0729f03003
commit 1701b18ca1
7 changed files with 12 additions and 33 deletions

View File

@ -1,15 +1,12 @@
[package] [package]
name = "smtp-codec" name = "instant-smtp"
description = "Low-level SMTP Parser and Serializer" description = "Low-level sans-I/O SMTP protocol implementation"
keywords = ["email", "smtp", "parser", "codec"] keywords = ["email", "smtp", "parser", "codec"]
version = "0.2.0" version = "0.1.0"
authors = ["Damian Poddebniak <poddebniak@mailbox.org>"] repository = "https://github.com/InstantDomain/instant-smtp"
repository = "https://github.com/duesee/smtp-codec"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
edition = "2018" edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features] [features]
default = [] default = []
serdex = ["serde"] serdex = ["serde"]

View File

@ -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) # instant-smtp: low-level sans-I/O SMTP implementation
[![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)
# SMTP Protocol Forked from smtp-codec in November 2022.
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.

View File

@ -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

View File

@ -1,6 +1,6 @@
use std::io::Write; use std::io::Write;
use smtp_codec::parse::command::command; use instant_smtp::parse::command::command;
fn main() -> std::io::Result<()> { fn main() -> std::io::Result<()> {
let mut args = std::env::args(); let mut args = std::env::args();

View File

@ -1,8 +1,7 @@
[package] [package]
name = "smtp-codec-fuzz" name = "instant-smtp-fuzz"
version = "0.0.0" version = "0.0.0"
authors = ["Automatically generated"]
publish = false publish = false
edition = "2018" edition = "2018"
@ -11,9 +10,7 @@ cargo-fuzz = true
[dependencies] [dependencies]
libfuzzer-sys = "0.4" libfuzzer-sys = "0.4"
instant-smtp = { path = ".." }
[dependencies.smtp-codec]
path = ".."
# Prevent this from interfering with workspaces # Prevent this from interfering with workspaces
[workspace] [workspace]

View File

@ -1,6 +1,6 @@
#![no_main] #![no_main]
use libfuzzer_sys::fuzz_target; use libfuzzer_sys::fuzz_target;
use smtp_codec::parse::command::command; use instant_smtp::parse::command::command;
fuzz_target!(|data: &[u8]| { fuzz_target!(|data: &[u8]| {
if let Ok((_, cmd)) = command(data) { if let Ok((_, cmd)) = command(data) {

View File

@ -1,11 +1,11 @@
use nom::FindSubstring; use instant_smtp::{
use smtp_codec::{
parse::{ parse::{
command::command, command::command,
response::{ehlo_ok_rsp, Greeting, Reply_lines}, response::{ehlo_ok_rsp, Greeting, Reply_lines},
}, },
types::Command, types::Command,
}; };
use nom::FindSubstring;
fn parse_trace(mut trace: &[u8]) { fn parse_trace(mut trace: &[u8]) {
let (rem, greeting) = Greeting(trace).unwrap(); let (rem, greeting) = Greeting(trace).unwrap();