From 62cffa56ff01acfcb567730786d160b69267291f Mon Sep 17 00:00:00 2001 From: Kodi Craft Date: Thu, 20 Jun 2024 11:45:17 +0200 Subject: [PATCH] Remove debug file --- Cargo.lock | 2 +- Cargo.toml | 2 +- tests/expanded.rs | 58 ----------------------------------------------- 3 files changed, 2 insertions(+), 60 deletions(-) delete mode 100644 tests/expanded.rs diff --git a/Cargo.lock b/Cargo.lock index 17368c1..0a3abe4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -46,7 +46,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "eagle" -version = "0.1.0" +version = "0.2.0" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index ba27d0b..583d1ce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "eagle" -version = "0.1.0" +version = "0.2.0" edition = "2021" license = "AGPL-3.0" diff --git a/tests/expanded.rs b/tests/expanded.rs deleted file mode 100644 index 9462fe7..0000000 --- a/tests/expanded.rs +++ /dev/null @@ -1,58 +0,0 @@ -#![feature(prelude_import)] -#[prelude_import] -use std::prelude::rust_2021::*; -#[macro_use] -extern crate std; -use eagle::Protocol; -enum TestProtocol { - Addition((i32, i32), i32), - SomeKindOfQuestion(String, i32), -} -enum TestProtocolAnswer { - addition(i32), - some_kind_of_question(i32), -} -enum TestProtocolQuestion { - addition((i32, i32)), - some_kind_of_question(String), -} -enum TestProtocolQuery { - addition((i32, i32), Option), - some_kind_of_question(String, Option), -} -trait TestProtocolServer { - fn addition(&mut self, arg0: i32, arg1: i32) -> i32; - fn some_kind_of_question(&mut self, arg: String) -> i32; -} -struct TestProtocolClient { - queries: ::std::collections::HashMap, - send_queue: tokio::sync::mpsc::Sender, - recv_queue: tokio::sync::mpsc::Receiver, -} -impl TestProtocolClient { - pub fn new( - send_queue: tokio::sync::mpsc::Sender, - recv_queue: tokio::sync::mpsc::Receiver, - ) -> Self { - Self { - queries: ::std::collections::HashMap::new(), - send_queue, - recv_queue, - } - } - pub fn addition(&mut self, arg0: i32, arg1: i32) -> i32 { - panic!("not implemented") - } - pub fn some_kind_of_question(&mut self, arg: String) -> i32 { - panic!("not implemented") - } -} -struct DummyServer; -impl TestProtocolServer for DummyServer { - fn some_kind_of_question(&mut self, question: String) -> i32 { - question.len() as i32 - } - fn addition(&mut self, arg0: i32, arg1: i32) -> i32 { - panic!("not yet implemented") - } -}