Skip to content

Commit

Permalink
linux updates
Browse files Browse the repository at this point in the history
  • Loading branch information
puffyCid committed Oct 27, 2023
1 parent ca202e2 commit 18a84f8
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 43 deletions.
52 changes: 26 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion artemis-core/src/runtime/linux/executable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use deno_core::{error::AnyError, op2};
#[op2]
#[string]
/// Expose parsing elf file to `Deno`
fn get_elf(#[string] path: String) -> Result<String, AnyError> {
pub(crate) fn get_elf(#[string] path: String) -> Result<String, AnyError> {
let elf_results = parse_elf_file(&path);
let elf_data = match elf_results {
Ok(results) => results,
Expand Down
2 changes: 1 addition & 1 deletion artemis-core/src/runtime/linux/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::runtime::nom::extensions::nom_functions;
use crate::runtime::system::extensions::system_functions;
use crate::runtime::time::extensions::time_functions;
use crate::runtime::unix::extensions::unix_functions;
use deno_core::{op2, Extension};
use deno_core::{Extension, Op};

/// Include all the `Artemis` function in the `Runtime`
pub(crate) fn setup_extensions() -> Vec<Extension> {
Expand Down
2 changes: 1 addition & 1 deletion artemis-core/src/runtime/linux/journal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use deno_core::{error::AnyError, op2};
#[op2]
#[string]
/// Expose parsing journal file to `Deno`
fn get_journal(#[string] path: String) -> Result<String, AnyError> {
pub(crate) fn get_journal(#[string] path: String) -> Result<String, AnyError> {
let journal_results = grab_journal_file(&path);
let journal_data = match journal_results {
Ok(results) => results,
Expand Down
2 changes: 1 addition & 1 deletion artemis-core/src/runtime/linux/logons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use deno_core::{error::AnyError, op2};
#[op2]
#[string]
/// Expose parsing logon file to `Deno`
fn get_logon(#[string] path: String) -> Result<String, AnyError> {
pub(crate) fn get_logon(#[string] path: String) -> Result<String, AnyError> {
let mut logons = Vec::new();
grab_logon_file(&path, &mut logons);

Expand Down
2 changes: 1 addition & 1 deletion artemis-core/src/runtime/unix/cron.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use log::error;
#[op2]
#[string]
/// Get `Cron` data
fn get_cron() -> Result<String, AnyError> {
pub(crate) fn get_cron() -> Result<String, AnyError> {
let history_results = Cron::parse_cron();
let history = match history_results {
Ok(results) => results,
Expand Down
6 changes: 3 additions & 3 deletions artemis-core/src/runtime/unix/shellhistory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use log::error;
#[op2]
#[string]
/// Get `Bash history` for all users
fn get_bash_history() -> Result<String, AnyError> {
pub(crate) fn get_bash_history() -> Result<String, AnyError> {
let history_results = BashHistory::get_user_bash_history();
let history = match history_results {
Ok(results) => results,
Expand All @@ -26,7 +26,7 @@ fn get_bash_history() -> Result<String, AnyError> {
#[op2]
#[string]
/// Get `Zsh history` for all users
fn get_zsh_history() -> Result<String, AnyError> {
pub(crate) fn get_zsh_history() -> Result<String, AnyError> {
let history_results = ZshHistory::get_user_zsh_history();
let history = match history_results {
Ok(results) => results,
Expand All @@ -42,7 +42,7 @@ fn get_zsh_history() -> Result<String, AnyError> {
#[op2]
#[string]
/// Get `Python history` for all users
fn get_python_history() -> Result<String, AnyError> {
pub(crate) fn get_python_history() -> Result<String, AnyError> {
let downloads_results = PythonHistory::get_user_python_history();
let downloads = match downloads_results {
Ok(results) => results,
Expand Down
2 changes: 1 addition & 1 deletion artemis-core/src/runtime/unix/sudo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use log::error;
#[op2]
#[string]
/// Get `Sudo log` data
fn get_sudologs() -> Result<String, AnyError> {
pub(crate) fn get_sudologs() -> Result<String, AnyError> {
let history_results = grab_sudo_logs();
let history = match history_results {
Ok(results) => results,
Expand Down
4 changes: 2 additions & 2 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ edition = "2021"
version = "0.4.0"

[dependencies]
base64 = "0.21.4"
base64 = "0.21.5"
log = "0.4.20"
artemis-core = {path = "../artemis-core"}
clap = {version = "4.4.6", features = ["std", "help", "derive"]}
clap = {version = "4.4.7", features = ["std", "help", "derive"]}
12 changes: 6 additions & 6 deletions server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ axum = { version = "0.6.20", default-features = false, features = [
"ws",
"multipart",
] }
tokio = { version = "1.32.0", features = ["full"] }
tokio = { version = "1.33.0", features = ["full"] }
log = "0.4.20"
serde = { version = "1.0.188", features = ["derive"] }
serde = { version = "1.0.190", features = ["derive"] }
serde_json = "1.0.107"
uuid = { version = "1.4.1", features = ["v4"] }
toml = "0.8.1"
futures = "0.3.28"
flate2 = "1.0.27"
uuid = { version = "1.5.0", features = ["v4"] }
toml = "0.8.5"
futures = "0.3.29"
flate2 = "1.0.28"

[dev-dependencies]
tower = { version = "0.4.13", features = ["util"] }
Expand Down

0 comments on commit 18a84f8

Please sign in to comment.