anytype 0.5.0

An ergonomic Anytype API client in rust
Documentation

_default:
    just --list

check:
    cargo build
    cargo clippy -- -D warnings
    fd -e rs | xargs rustfmt --edition 2024 --check

check-all: (check)
    cargo shear
    just spellcheck
    cargo audit -f ../Cargo.lock
    cargo outdated

test:
    #!/usr/bin/env bash
    source ../.test-env
    cargo test -- --nocapture
    
run-examples:
    #!/usr/bin/env bash
    source ../.test-env
    cargo run --example list_spaces
    #cargo run --example interactive_auth
    cargo run --example list_types_and_properties
    cargo run --example create_object
    cargo run --example update_object_properties
    cargo run --example update_markdown_body
    cargo run --example filters_basic
    cargo run --example filter_expressions
    cargo run --example search_global
    cargo run --example search_in_space
    cargo run --example templates
    cargo run --example retry_eventual_consistency
    cargo run --example pagination_stream
    cargo run --example views_list_objects

ex:
    #!/usr/bin/env bash
    source ../.test-env
    # agenda chat_listener chat_messages
    examples=(
        #create_object files filter_expressions filters_basic
        #interactive_auth
        #list_spaces list_tasks list_types_and_properties pagination_stream
        retry_eventual_consistency search_global search_in_space smoke_live templates
        update_markdown_body update_object_properties views_list_objects
    )
    for example in "${examples[@]}"; do
        sleep 1
        echo "=== $example ==="
        cargo run --example $example
    done


# check for typos
spellcheck:
    typos
    cspell "**/*.{rs,md}"

# generate rust docs and open browser to view
docs-browse:
    cargo doc --no-deps --open

# open docs to view and continuously update
serve-docs: (docs-browse)
    cargo watch -s 'cargo doc --no-deps'