refactor:
- created dsa_tasks crate for task-specific functionality that doesn't belong in common.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
pub mod asm;
|
||||
pub mod isa;
|
||||
pub mod process;
|
||||
|
||||
pub mod prelude {
|
||||
pub use crate::isa::instructions::Instruction;
|
||||
pub use crate::isa::register::Register;
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
[package]
|
||||
name = "dsa_tasks"
|
||||
edition.workspace = true
|
||||
version.workspace = true
|
||||
authors.workspace = true
|
||||
|
||||
[dependencies]
|
||||
@@ -1,7 +1,6 @@
|
||||
use std::fmt::Debug;
|
||||
use std::sync::{mpsc, Arc};
|
||||
use crate::process::AgentSink::{Callback, Channel};
|
||||
|
||||
use std::sync::{Arc, mpsc};
|
||||
use crate::AgentSink::{Callback, Channel};
|
||||
|
||||
pub struct ProcessAgent {
|
||||
sink: Arc<AgentSink>,
|
||||
@@ -25,7 +24,7 @@ impl ProcessAgent {
|
||||
}
|
||||
}
|
||||
|
||||
enum AgentSink {
|
||||
pub enum AgentSink {
|
||||
Channel(mpsc::Sender<String>),
|
||||
Callback(Box<dyn Fn(&str) + Send + Sync>)
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
[package]
|
||||
name = "zxq5_egui"
|
||||
edition.workspace = true
|
||||
version.workspace = true
|
||||
authors.workspace = true
|
||||
|
||||
[dependencies]
|
||||
@@ -0,0 +1,10 @@
|
||||
|
||||
# zxq5_egui
|
||||
A set of UI components for the egui UI framework that may be useful across all of my personal projects.
|
||||
|
||||
## Features
|
||||
- buttons & labels styled to my personal liking, meant to achieve a clean modern look.
|
||||
|
||||
## TODO:
|
||||
- File-tree for viewing files within a directory and performing simple directory operations from within the project.
|
||||
- this will be useful for the DSA user interface and maybe for Worldcoder if I revive that project in the future.
|
||||
@@ -0,0 +1,2 @@
|
||||
pub mod buttons;
|
||||
pub mod tabs;
|
||||
Reference in New Issue
Block a user