]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Build the Rust ntstatus generated code
authorDavid Mulder <dmulder@samba.org>
Tue, 30 Jul 2024 15:38:48 +0000 (09:38 -0600)
committerDavid Mulder <dmulder@samba.org>
Wed, 23 Oct 2024 14:21:33 +0000 (14:21 +0000)
Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
himmelblaud/Cargo.toml
himmelblaud/ntstatus_gen/Cargo.toml [new file with mode: 0644]
himmelblaud/ntstatus_gen/src/lib.rs [new file with mode: 0644]

index 044a4f0ae3f855676ee60b147f83b1d15903a824..69197cd5ff37be115c92f31baed257fa550d7f35 100644 (file)
@@ -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 (file)
index 0000000..c36ee96
--- /dev/null
@@ -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 (file)
index 0000000..b112776
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.
+*/
+
+#[path = "../../../bin/default/libcli/util/ntstatus_gen.rs"]
+mod ntstatus_gen;
+pub use ntstatus_gen::*;