Update Cargo metadata
This commit is contained in:
parent
5019fc39ea
commit
c4684a526f
|
@ -1,11 +1,11 @@
|
|||
[package]
|
||||
name = "epp-client"
|
||||
version = "0.7.0"
|
||||
name = "instant-epp"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
rust-version = "1.59"
|
||||
license = "MIT"
|
||||
description = "EPP (Extensible Provisioning Protocol) Client Library for Domain Registration and Management"
|
||||
repository = "https://github.com/masalachai/epp-client"
|
||||
description = "EPP (Extensible Provisioning Protocol) client library"
|
||||
repository = "https://github.com/InstantDomain/instant-epp"
|
||||
|
||||
[features]
|
||||
default = ["tokio-rustls"]
|
||||
|
|
|
@ -86,7 +86,7 @@ impl<'a> UpdateWithNameStore<'a> {
|
|||
}
|
||||
|
||||
#[derive(Debug, ToXml)]
|
||||
#[xml(inline)]
|
||||
#[xml(transparent)]
|
||||
pub struct UpdateWithNameStore<'a> {
|
||||
pub sync: Update,
|
||||
pub namestore: NameStore<'a>,
|
||||
|
|
|
@ -19,10 +19,7 @@ impl<'a> Command for HostCreate<'a> {
|
|||
impl<'a> HostCreate<'a> {
|
||||
pub fn new(name: &'a str, addresses: Option<&'a [IpAddr]>) -> Self {
|
||||
Self {
|
||||
host: HostCreateRequest {
|
||||
name,
|
||||
addresses,
|
||||
},
|
||||
host: HostCreateRequest { name, addresses },
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,9 +59,9 @@
|
|||
//! use std::net::ToSocketAddrs;
|
||||
//! use std::time::Duration;
|
||||
//!
|
||||
//! use epp_client::EppClient;
|
||||
//! use epp_client::domain::check::DomainCheck;
|
||||
//! use epp_client::login::Login;
|
||||
//! use instant_epp::EppClient;
|
||||
//! use instant_epp::domain::check::DomainCheck;
|
||||
//! use instant_epp::login::Login;
|
||||
//!
|
||||
//! #[tokio::main]
|
||||
//! async fn main() {
|
||||
|
|
|
@ -8,10 +8,11 @@ use regex::Regex;
|
|||
use tokio::time::timeout;
|
||||
use tokio_test::io::Builder;
|
||||
|
||||
use epp_client::domain::{DomainCheck, DomainContact, DomainCreate, Period};
|
||||
use epp_client::login::Login;
|
||||
use epp_client::response::ResultCode;
|
||||
use epp_client::EppClient;
|
||||
use instant_epp::client::{Connector, EppClient};
|
||||
use instant_epp::domain::{DomainCheck, DomainContact, DomainCreate, Period};
|
||||
use instant_epp::login::Login;
|
||||
use instant_epp::response::ResultCode;
|
||||
use instant_epp::Error;
|
||||
|
||||
const CLTRID: &str = "cltrid:1626454866";
|
||||
|
||||
|
@ -84,10 +85,10 @@ async fn client() {
|
|||
struct FakeConnector;
|
||||
|
||||
#[async_trait]
|
||||
impl epp_client::client::Connector for FakeConnector {
|
||||
impl Connector for FakeConnector {
|
||||
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(&[
|
||||
"response/greeting.xml",
|
||||
"request/login.xml",
|
||||
|
@ -141,10 +142,10 @@ async fn dropped() {
|
|||
struct FakeConnector;
|
||||
|
||||
#[async_trait]
|
||||
impl epp_client::client::Connector for FakeConnector {
|
||||
impl Connector for FakeConnector {
|
||||
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 buf = xml("response/greeting.xml");
|
||||
|
|
Loading…
Reference in New Issue