diff --git a/.gitignore b/.gitignore index 7cfeab2..b36dcc1 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,10 @@ target /target .mist + + +# Added by cargo +# +# already existing elements were commented out + +#/target diff --git a/Cargo.lock b/Cargo.lock index e7f4d2d..279cfd2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5,10 +5,3 @@ version = 4 [[package]] name = "pulse-trader" version = "0.1.0" -dependencies = [ - "pulse-ui", -] - -[[package]] -name = "pulse-ui" -version = "0.1.0-alpha.0" diff --git a/Cargo.toml b/Cargo.toml index 610264a..b310d2e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,15 +3,4 @@ name = "pulse-trader" version = "0.1.0" edition = "2024" -[workspace] -members = ["pulse-ui"] - -[workspace.dependencies] -pulse-ui = { path = "pulse-ui", version = "0.1.0-alpha.0" } - [dependencies] -pulse-ui = { workspace = true } - -[[bin]] -name = "pulse-trader" -path = ".mist/src/main.rs" diff --git a/Mist.toml b/Mist.toml deleted file mode 100644 index 401c586..0000000 --- a/Mist.toml +++ /dev/null @@ -1,3 +0,0 @@ -package = "main.mist" -packages = [] -include = ["pulse-ui"] diff --git a/README.md b/README.md index 3938f59..17c62b0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # pulse-trader -A high-performance algorithmic crypto trading engine with backtesting, paper trading, and live execution support. Built with Mist +A high-performance algorithmic crypto trading engine with backtesting, paper trading, and live execution support. diff --git a/pulse-ui/Cargo.toml b/pulse-ui/Cargo.toml deleted file mode 100644 index 1890d49..0000000 --- a/pulse-ui/Cargo.toml +++ /dev/null @@ -1,10 +0,0 @@ -[package] -name = "pulse-ui" -version = "0.1.0-alpha.0" -edition = "2024" - -[dependencies] - -[lib] -name = "pulse_ui" -path = ".mist/src/lib.rs" diff --git a/pulse-ui/Mist.toml b/pulse-ui/Mist.toml deleted file mode 100644 index a568ef1..0000000 --- a/pulse-ui/Mist.toml +++ /dev/null @@ -1,3 +0,0 @@ -package = "lib.mist" -packages = [] -include = [] diff --git a/pulse-ui/src/lib.mist b/pulse-ui/src/lib.mist deleted file mode 100644 index 083d0d9..0000000 --- a/pulse-ui/src/lib.mist +++ /dev/null @@ -1,3 +0,0 @@ -pub void test() { - println!("Hello, World"); -} diff --git a/pulse-ui/src/render_scope.mist b/pulse-ui/src/render_scope.mist deleted file mode 100644 index 80a660b..0000000 --- a/pulse-ui/src/render_scope.mist +++ /dev/null @@ -1,31 +0,0 @@ -pub module render_scope; - -pub class RenderScope -{ - u16 x = 0; - u16 y = 0; - u16 width = 0; - u16 height = 0; - - pub constructor() {} -} - -pub class RenderStack -{ - pub Vec stack; - - pub constructor() - { - self.stack = Vec::new(); - } - - pub RenderScope pop(&mut self) - { - self.stack.pop().expect("Failed to pop, no more items in the stack") - } - - pub RenderScope mut'a& push<'a>(&'a mut self) - { - self.stack.push_mut(RenderScope::new()) - } -} diff --git a/pulse-ui/src/units.mist b/pulse-ui/src/units.mist deleted file mode 100644 index f55e633..0000000 --- a/pulse-ui/src/units.mist +++ /dev/null @@ -1,18 +0,0 @@ -pub module units; - -pub enum Position -{ - Char(u16); - ScreenUnits { u16 units; u16 div; }; - Percent(u16); - Center; - End; -} - -pub enum Size -{ - Char(u16); - ScreenUnits { u16 units; u16 div; }; - Percent(u16); - Full; -} diff --git a/pulse-ui/src/widgets/text.mist b/pulse-ui/src/widgets/text.mist deleted file mode 100644 index ea36234..0000000 --- a/pulse-ui/src/widgets/text.mist +++ /dev/null @@ -1,19 +0,0 @@ -pub module text; - -use super::widget::Widget; -use crate::render_scope; - -pub class Text : Widget { - String text; - - pub constructor(str& text) - { - super = Super::new(); - self.text = text.to_string(); - } - - pub virtual void render(&self, render_scope::RenderStack mut& stack) override - { - render_scope::RenderScope mut& scope = stack.push(); - } -} diff --git a/pulse-ui/src/widgets/widget.mist b/pulse-ui/src/widgets/widget.mist deleted file mode 100644 index a2d8c59..0000000 --- a/pulse-ui/src/widgets/widget.mist +++ /dev/null @@ -1,21 +0,0 @@ -pub module widget; - -use crate::units; -use crate::render_scope; - -pub class Widget -{ - units::Position x = units::Position::Char(0); - units::Position y = units::Position::Char(0); - - units::Size width = units::Size::Full; - units::Size height = units::Size::Full; - - pub constructor() {} - - pub virtual void render(&self, render_scope::RenderStack mut& stack) { - let _ = stack; - } - - pub virtual void update(&self) {} -} diff --git a/src/main.mist b/src/main.mist deleted file mode 100644 index ff5fe30..0000000 --- a/src/main.mist +++ /dev/null @@ -1,5 +0,0 @@ -void main() { - println!("Hello, World!"); - - pulse_ui::test(); -} diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}