From: Remi Gacogne Date: Mon, 26 Aug 2024 15:53:02 +0000 (+0200) Subject: rec: Fix a few typos in the settings files X-Git-Tag: rec-5.2.0-alpha1~126^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14585%2Fhead;p=thirdparty%2Fpdns.git rec: Fix a few typos in the settings files --- diff --git a/pdns/recursordist/settings/README.md b/pdns/recursordist/settings/README.md index 9d86c6d827..b8d7ab5190 100644 --- a/pdns/recursordist/settings/README.md +++ b/pdns/recursordist/settings/README.md @@ -6,10 +6,10 @@ Inside this directory, there is a `rust` subdirectory that contains the Rust cod The Rust code uses CXX for bridging between C++ and Rust. At the moment of writing, we only call Rust code from C++ and not vice versa. -Additionally, the Rust Serde crate (and specifically Serde-YAML) is used to generatec code to handle YAML. +Additionally, the Rust Serde crate (and specifically Serde-YAML) is used to generate code to handle YAML. The entry point for code generation is `generate.py`, which uses `table.py` to produce C++, Rust and .rst files. -See `generate.sh` for some details about the generation process. +See `generate.py` for some details about the generation process. This directory also contains a couple of `*-in.*` files which are included into files generated by the generation process. From the C++ point of view, several namespaces are defined: diff --git a/pdns/recursordist/settings/generate.py b/pdns/recursordist/settings/generate.py index f6d85ea483..6cffa922ea 100644 --- a/pdns/recursordist/settings/generate.py +++ b/pdns/recursordist/settings/generate.py @@ -5,7 +5,7 @@ # # For Rust it generates rust/src/lib.rs, containing the structs with # CXX and Serde annotations and associated code. rust-preamble-in.rs is -# included before the generated code and rus-bridge-in.rs inside the +# included before the generated code and rust-bridge-in.rs inside the # bridge module in the generated lib.rs. Header files generated by CXX # (lib.rs.h and cxx.h) are copied from deep inside the generated code # hierarchy into the rust subdir as well. @@ -763,7 +763,7 @@ def gen_newstyle_docs(srcdir, argentries): RUNTIME = '*runtime determined*' def generate(): - """Read table, validate and generate C++, Rst and .rst files""" + """Read table, validate and generate C++, Rust and .rst files""" srcdir = '.' gendir = '.' if len(sys.argv) == 3: