Update Cargo metadata

This commit is contained in:
Dirkjan Ochtman 2023-02-23 13:39:42 +01:00
parent 5019fc39ea
commit c4684a526f
5 changed files with 18 additions and 20 deletions

View File

@ -1,11 +1,11 @@
[package] [package]
name = "epp-client" name = "instant-epp"
version = "0.7.0" version = "0.1.0"
edition = "2021" edition = "2021"
rust-version = "1.59" rust-version = "1.59"
license = "MIT" license = "MIT"
description = "EPP (Extensible Provisioning Protocol) Client Library for Domain Registration and Management" description = "EPP (Extensible Provisioning Protocol) client library"
repository = "https://github.com/masalachai/epp-client" repository = "https://github.com/InstantDomain/instant-epp"
[features] [features]
default = ["tokio-rustls"] default = ["tokio-rustls"]

View File

@ -86,7 +86,7 @@ impl<'a> UpdateWithNameStore<'a> {
} }
#[derive(Debug, ToXml)] #[derive(Debug, ToXml)]
#[xml(inline)] #[xml(transparent)]
pub struct UpdateWithNameStore<'a> { pub struct UpdateWithNameStore<'a> {
pub sync: Update, pub sync: Update,
pub namestore: NameStore<'a>, pub namestore: NameStore<'a>,

View File

@ -19,10 +19,7 @@ impl<'a> Command for HostCreate<'a> {
impl<'a> HostCreate<'a> { impl<'a> HostCreate<'a> {
pub fn new(name: &'a str, addresses: Option<&'a [IpAddr]>) -> Self { pub fn new(name: &'a str, addresses: Option<&'a [IpAddr]>) -> Self {
Self { Self {
host: HostCreateRequest { host: HostCreateRequest { name, addresses },
name,
addresses,
},
} }
} }
} }

View File

@ -59,9 +59,9 @@
//! use std::net::ToSocketAddrs; //! use std::net::ToSocketAddrs;
//! use std::time::Duration; //! use std::time::Duration;
//! //!
//! use epp_client::EppClient; //! use instant_epp::EppClient;
//! use epp_client::domain::check::DomainCheck; //! use instant_epp::domain::check::DomainCheck;
//! use epp_client::login::Login; //! use instant_epp::login::Login;
//! //!
//! #[tokio::main] //! #[tokio::main]
//! async fn main() { //! async fn main() {

View File

@ -8,10 +8,11 @@ use regex::Regex;
use tokio::time::timeout; use tokio::time::timeout;
use tokio_test::io::Builder; use tokio_test::io::Builder;
use epp_client::domain::{DomainCheck, DomainContact, DomainCreate, Period}; use instant_epp::client::{Connector, EppClient};
use epp_client::login::Login; use instant_epp::domain::{DomainCheck, DomainContact, DomainCreate, Period};
use epp_client::response::ResultCode; use instant_epp::login::Login;
use epp_client::EppClient; use instant_epp::response::ResultCode;
use instant_epp::Error;
const CLTRID: &str = "cltrid:1626454866"; const CLTRID: &str = "cltrid:1626454866";
@ -84,10 +85,10 @@ async fn client() {
struct FakeConnector; struct FakeConnector;
#[async_trait] #[async_trait]
impl epp_client::client::Connector for FakeConnector { impl Connector for FakeConnector {
type Connection = tokio_test::io::Mock; type Connection = tokio_test::io::Mock;
async fn connect(&self, _: Duration) -> Result<Self::Connection, epp_client::Error> { async fn connect(&self, _: Duration) -> Result<Self::Connection, Error> {
Ok(build_stream(&[ Ok(build_stream(&[
"response/greeting.xml", "response/greeting.xml",
"request/login.xml", "request/login.xml",
@ -141,10 +142,10 @@ async fn dropped() {
struct FakeConnector; struct FakeConnector;
#[async_trait] #[async_trait]
impl epp_client::client::Connector for FakeConnector { impl Connector for FakeConnector {
type Connection = tokio_test::io::Mock; type Connection = tokio_test::io::Mock;
async fn connect(&self, _: Duration) -> Result<Self::Connection, epp_client::Error> { async fn connect(&self, _: Duration) -> Result<Self::Connection, Error> {
let mut builder = Builder::new(); let mut builder = Builder::new();
let buf = xml("response/greeting.xml"); let buf = xml("response/greeting.xml");