Remove debug file

This commit is contained in:
Kodi Craft 2024-06-20 11:45:17 +02:00
parent 6c75996096
commit 62cffa56ff
Signed by: kodi
GPG Key ID: 69D9EED60B242822
3 changed files with 2 additions and 60 deletions

2
Cargo.lock generated
View File

@ -46,7 +46,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "eagle"
version = "0.1.0"
version = "0.2.0"
dependencies = [
"proc-macro2",
"quote",

View File

@ -1,6 +1,6 @@
[package]
name = "eagle"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
license = "AGPL-3.0"

View File

@ -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<i32>),
some_kind_of_question(String, Option<i32>),
}
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<u64, TestProtocolQuery>,
send_queue: tokio::sync::mpsc::Sender<TestProtocolQuestion>,
recv_queue: tokio::sync::mpsc::Receiver<TestProtocolAnswer>,
}
impl TestProtocolClient {
pub fn new(
send_queue: tokio::sync::mpsc::Sender<TestProtocolQuestion>,
recv_queue: tokio::sync::mpsc::Receiver<TestProtocolAnswer>,
) -> 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")
}
}