initial commit

This commit is contained in:
Rokas Puzonas 2023-03-26 00:45:33 +02:00
commit 0695f6c6e1
7 changed files with 2763 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

20
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,20 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(Windows) Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/${workspaceFolderBasename}.exe",
"preLaunchTask": "rust: cargo build",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"console": "externalTerminal"
}
]
}

2671
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

15
Cargo.toml Normal file
View File

@ -0,0 +1,15 @@
[package]
name = "ubusman"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
anyhow = "1.0.70"
directories-next = "2.0.0"
eframe = "0.21.3"
egui = "0.21.0"
serde = { version = "1.0.158", features = ["derive"] }
thiserror = "1.0.40"
toml = "0.7.3"

14
src/LICENSE Normal file
View File

@ -0,0 +1,14 @@
Copyright 2023 Rokas Puzonas
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the “Software”), to deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

21
src/app.rs Normal file
View File

@ -0,0 +1,21 @@
use eframe::CreationContext;
#[derive(Default)]
pub struct App;
impl App {
pub fn init(&mut self, _cc: &CreationContext) {
}
}
impl eframe::App for App {
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
use egui::*;
egui::CentralPanel::default()
.show(ctx, |ui| {
ui.label("Hello World!");
});
}
}

21
src/main.rs Normal file
View File

@ -0,0 +1,21 @@
#[cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release
use app::App;
mod app;
fn main() -> eframe::Result<()> {
let mut native_options = eframe::NativeOptions::default();
native_options.decorated = true;
native_options.resizable = true;
let mut app = App::default();
eframe::run_native(
"ubusman",
native_options,
Box::new(move |cc| {
app.init(cc);
Box::new(app)
})
)
}