From 61a5dc11a77e5f6cfba9fb8aaddde845b44eee2c Mon Sep 17 00:00:00 2001 From: David Mulder Date: Tue, 30 Jul 2024 09:38:48 -0600 Subject: [PATCH] Build the Rust ntstatus generated code Signed-off-by: David Mulder Reviewed-by: Alexander Bokovoy --- himmelblaud/Cargo.toml | 3 ++- himmelblaud/ntstatus_gen/Cargo.toml | 6 ++++++ himmelblaud/ntstatus_gen/src/lib.rs | 24 ++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 himmelblaud/ntstatus_gen/Cargo.toml create mode 100644 himmelblaud/ntstatus_gen/src/lib.rs diff --git a/himmelblaud/Cargo.toml b/himmelblaud/Cargo.toml index 044a4f0ae3f..69197cd5ff3 100644 --- a/himmelblaud/Cargo.toml +++ b/himmelblaud/Cargo.toml @@ -16,9 +16,10 @@ dbg = { workspace = true } [workspace] members = [ - "chelps", "dbg" + "chelps", "dbg", "ntstatus_gen", ] [workspace.dependencies] dbg = { path = "dbg" } chelps = { path = "chelps" } +ntstatus_gen = { path = "ntstatus_gen" } diff --git a/himmelblaud/ntstatus_gen/Cargo.toml b/himmelblaud/ntstatus_gen/Cargo.toml new file mode 100644 index 00000000000..c36ee967dfe --- /dev/null +++ b/himmelblaud/ntstatus_gen/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "ntstatus_gen" +edition.workspace = true +license.workspace = true +homepage.workspace = true +version.workspace = true diff --git a/himmelblaud/ntstatus_gen/src/lib.rs b/himmelblaud/ntstatus_gen/src/lib.rs new file mode 100644 index 00000000000..b112776f579 --- /dev/null +++ b/himmelblaud/ntstatus_gen/src/lib.rs @@ -0,0 +1,24 @@ +/* + Unix SMB/CIFS implementation. + + Generated NTSTATUS Errors + + Copyright (C) David Mulder 2024 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + +#[path = "../../../bin/default/libcli/util/ntstatus_gen.rs"] +mod ntstatus_gen; +pub use ntstatus_gen::*; -- 2.47.3