Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use only the description functions during the feed update #1804

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rust/src/feed/update/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand Down Expand Up @@ -108,7 +109,7 @@ where
dispatcher: storage,
verifier,
feed_version_set: false,
executor: nasl_std_functions(),
executor: Executor::single(Description),
}
}

Expand Down
1 change: 1 addition & 0 deletions rust/src/nasl/builtin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion rust/src/nasl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading