Skip to content

Commit

Permalink
Portals: Include main quantum portal (ie the syscall portal)
Browse files Browse the repository at this point in the history
  • Loading branch information
corigan01 committed Jan 31, 2025
1 parent 38131ae commit 5e5bceb
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ members = [
"user/hello-server",
"crates/portal-macro",
"crates/portal",
"portals/hello-portal"
"portals/hello-portal",
"portals/quantum-portal"
]

default-members = ["meta"]
Expand Down Expand Up @@ -62,6 +63,7 @@ tar = { path = "crates/tar" }
portal = { path = "crates/portal" }
portal-macro = { path = "crates/portal-macro" }
hello-portal = { path = "portals/hello-portal" }
hello-portal = { path = "portals/quantum-portal" }

[profile.stage-bootsector]
inherits = "release"
Expand Down
3 changes: 2 additions & 1 deletion crates/portal-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA

use portal_parse::PortalMacroInput;
use proc_macro::TokenStream;
use proc_macro_error::proc_macro_error;
use proc_macro_error::{proc_macro_error, abort_if_dirty};
use syn::parse_macro_input;
use type_serde::generate_ast_portal;

Expand All @@ -39,5 +39,6 @@ pub fn portal(args: TokenStream, input: TokenStream) -> TokenStream {
let trait_input = parse_macro_input!(input as portal_parse::PortalTrait);
let portal_macro = PortalMacroInput { args, trait_input };

abort_if_dirty();
generate_ast_portal(&portal_macro).into()
}
9 changes: 9 additions & 0 deletions portals/quantum-portal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "quantum-portal"
edition = "2024"
version.workspace = true
authors.workspace = true
description.workspace = true
documentation.workspace = true

[dependencies]
26 changes: 26 additions & 0 deletions portals/quantum-portal/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
____ __ __ _ __
/ __ \__ _____ ____ / /___ ____ _ / / (_) /
/ /_/ / // / _ `/ _ \/ __/ // / ' \ / /__/ / _ \
\___\_\_,_/\_,_/_//_/\__/\_,_/_/_/_/ /____/_/_.__/
Part of the Quantum OS Project
Copyright 2025 Gavin Kellam
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.
*/

#![no_std]
2 changes: 1 addition & 1 deletion visualize.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gource -1920x1080 --title "QuantumOS" --hide progress --max-user-speed 700 --seconds-per-day 0.25 -e 0.005 --bloom-intensity 0.05 --hide filenames
gource -1920x1080 --title "QuantumOS" --hide progress --max-user-speed 700 --seconds-per-day 0.10 -e 0.005 --bloom-intensity 0.05

0 comments on commit 5e5bceb

Please sign in to comment.