Skip to content
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
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,19 @@ jobs:
dotnet tool restore
dotnet csharpier --check .

- name: Run `cargo doc` for bindings crate
# `bindings` is the only crate we care strongly about documenting,
# since we link to its docs.rs from our website.
# We won't pass `--no-deps`, though,
# since we want everything reachable through it to also work.
# This includes `sats` and `lib`.
working-directory: crates/bindings
env:
# Make `cargo doc` exit with error on warnings, most notably broken links
RUSTDOCFLAGS: '--deny warnings'
run: |
cargo doc

wasm_bindings:
name: Build and test wasm bindings
runs-on: spacetimedb-runner
Expand Down
3 changes: 2 additions & 1 deletion crates/bindings/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![doc = include_str!("../README.md")]
// ^ if you are working on docs, go read the top comment of README.md please.

#[cfg(feature = "unstable")]
mod client_visibility_filter;
pub mod log_stopwatch;
mod logger;
Expand All @@ -18,7 +19,7 @@ pub use log;
#[cfg(feature = "rand")]
pub use rand;

#[doc(hidden)]
#[cfg(feature = "unstable")]
pub use client_visibility_filter::Filter;
#[cfg(feature = "rand")]
pub use rng::StdbRng;
Expand Down
8 changes: 4 additions & 4 deletions crates/sats/src/product_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,22 +121,22 @@ impl ProductType {
self.is_i64_newtype(TIME_DURATION_TAG)
}

/// Returns whether this is the special tag of [`Identity`].
/// Returns whether this is the special tag of `Identity`.
pub fn is_identity_tag(tag_name: &str) -> bool {
tag_name == IDENTITY_TAG
}

/// Returns whether this is the special tag of [`ConnectionId`].
/// Returns whether this is the special tag of `ConnectionId`.
pub fn is_connection_id_tag(tag_name: &str) -> bool {
tag_name == CONNECTION_ID_TAG
}

/// Returns whether this is the special tag of [`Timestamp`].
/// Returns whether this is the special tag of [`crate::timestamp::Timestamp`].
pub fn is_timestamp_tag(tag_name: &str) -> bool {
tag_name == TIMESTAMP_TAG
}

/// Returns whether this is the special tag of [`TimeDuration`].
/// Returns whether this is the special tag of [`crate::time_duration::TimeDuration`].
pub fn is_time_duration_tag(tag_name: &str) -> bool {
tag_name == TIME_DURATION_TAG
}
Expand Down
Loading