From c502fc8681c30d40a499b7d2dcd3c5e2236b3468 Mon Sep 17 00:00:00 2001 From: Toni Peter Date: Mon, 13 Jan 2025 13:58:13 +0100 Subject: [PATCH] Use only the description functions during the feed update --- rust/src/feed/update/mod.rs | 3 ++- rust/src/nasl/builtin/mod.rs | 1 + rust/src/nasl/mod.rs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/rust/src/feed/update/mod.rs b/rust/src/feed/update/mod.rs index 4f3d91697..79475b763 100644 --- a/rust/src/feed/update/mod.rs +++ b/rust/src/feed/update/mod.rs @@ -11,6 +11,7 @@ use futures::{stream, Stream, StreamExt}; use std::fs::File; use tracing::trace; +use crate::nasl::builtin::Description; use crate::nasl::interpreter::{CodeInterpreter, Interpreter}; use crate::nasl::nasl_std_functions; use crate::nasl::prelude::*; @@ -108,7 +109,7 @@ where dispatcher: storage, verifier, feed_version_set: false, - executor: nasl_std_functions(), + executor: Executor::single(Description), } } diff --git a/rust/src/nasl/builtin/mod.rs b/rust/src/nasl/builtin/mod.rs index 595e38b76..7563dac21 100644 --- a/rust/src/nasl/builtin/mod.rs +++ b/rust/src/nasl/builtin/mod.rs @@ -26,6 +26,7 @@ mod sys; #[cfg(test)] mod tests; +pub use description::Description; pub use error::BuiltinError; pub use host::HostError; pub use knowledge_base::KBError; diff --git a/rust/src/nasl/mod.rs b/rust/src/nasl/mod.rs index d4f3876f9..dc284bd88 100644 --- a/rust/src/nasl/mod.rs +++ b/rust/src/nasl/mod.rs @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: GPL-2.0-or-later WITH x11vnc-openssl-exception -mod builtin; +pub mod builtin; pub mod interpreter; pub mod syntax; pub mod utils;