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
11 changes: 11 additions & 0 deletions scripts/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,14 @@ cargo clippy \
-A unexpected-cfgs \
-A clippy::doc_lazy_continuation \
-D warnings

# Regenerate READMEs with cargo-rdme
echo "Regenerating READMEs..."
if ! command -v cargo-rdme &> /dev/null; then
cargo install cargo-rdme
fi
for toml in $(find program-libs sdk-libs -name '.cargo-rdme.toml' -type f); do
crate_dir=$(dirname "$toml")
echo "Regenerating README in $crate_dir..."
(cd "$crate_dir" && cargo rdme --no-fail-on-warnings)
done
22 changes: 11 additions & 11 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ cargo clippy --workspace --all-features --all-targets -- -D warnings
# Check that program-libs and programs don't depend on sdk-libs
./scripts/check-dependency-constraints.sh

# Check that READMEs are up-to-date with cargo-rdme
echo "Checking READMEs are up-to-date..."
if ! command -v cargo-rdme &> /dev/null; then
cargo install cargo-rdme
fi
for toml in $(find program-libs sdk-libs -name '.cargo-rdme.toml' -type f); do
crate_dir=$(dirname "$toml")
echo "Checking README in $crate_dir..."
(cd "$crate_dir" && cargo rdme --check --no-fail-on-warnings)
done

echo "Testing feature combinations..."

# Test no-default-features for all library crates
Expand Down Expand Up @@ -117,14 +128,3 @@ for crate in "${NO_DEFAULT_CRATES[@]}"; do
echo "Checking $crate with --no-default-features..."
cargo test -p "$crate" --no-run
done

# Check that READMEs are up-to-date with cargo-rdme
echo "Checking READMEs are up-to-date..."
if ! command -v cargo-rdme &> /dev/null; then
cargo install cargo-rdme
fi
for toml in $(find program-libs sdk-libs -name '.cargo-rdme.toml' -type f); do
crate_dir=$(dirname "$toml")
echo "Checking README in $crate_dir..."
(cd "$crate_dir" && cargo rdme --check --no-fail-on-warnings)
done
11 changes: 0 additions & 11 deletions sdk-libs/sdk/readme.md

This file was deleted.

3 changes: 3 additions & 0 deletions sdk-libs/token-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[package]
name = "light-token-client"
version = "0.1.0"
description = "Client library for Light Protocol compressed tokens"
repository = "https://github.com/Lightprotocol/light-protocol"
license = "Apache-2.0"
edition = { workspace = true }

[features]
Expand Down
Loading