From a3d6c85e0629157e562374a3819af7e21e364588 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 15 Jan 2021 20:41:26 +0000 Subject: [PATCH] rust: Fix a pub(crate) warning, add a few doc comments Mainly went to fix the warning but decided to add some comments while I was in here. --- rust/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rust/src/lib.rs b/rust/src/lib.rs index ad22129b..a284c3f0 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -1,3 +1,6 @@ +//! rpm-ostree is split into a C/C++ portion and a Rust portion, the latter +//! of which is compiled into a shared library, which is defined here. + /* * Copyright (C) 2018 Red Hat, Inc. * @@ -12,6 +15,7 @@ mod ffiutil; pub(crate) use cxxrsutil::*; mod includes; +/// APIs defined here are automatically bridged between Rust and C++ using https://cxx.rs/ #[cxx::bridge(namespace = "rpmostreecxx")] mod ffi { // Types that are defined by gtk-rs generated bindings that @@ -141,7 +145,7 @@ pub(crate) use client::*; mod cliwrap; pub use cliwrap::*; mod countme; -pub use countme::*; +pub(crate) use countme::*; mod composepost; pub(crate) use composepost::*; mod core;