Skip to content

Conversation

Copy link

Copilot AI commented Feb 1, 2026

Documentation in phase11-demo/README.md used non-existent #[rustapi::get] macro syntax instead of the correct #[rustapi_rs::get] pattern used consistently throughout the repository.

Changes

  • Updated macro references in code examples from #[rustapi::get] to #[rustapi_rs::get]

Before/After

// Before (incorrect)
#[rustapi::get("/admin")]
async fn admin_only(guard: RoleGuard<"admin">) -> &'static str { ... }

// After (correct)
#[rustapi_rs::get("/admin")]
async fn admin_only(guard: RoleGuard<"admin">) -> &'static str { ... }
Original prompt

This section details on the original issue you should resolve

<issue_title>Quickstart update / no Schema in the root</issue_title>
<issue_description>quick start

Needs adjusting,

currently says

cargo rustapi new my-api

but this is what actually worked
cargo-rustapi new my-api


Also get compile errors when choosing these options on the menu - if fixed in outstanding PR then ignore this!

✔ Select a template · api - REST API with CRUD
✔ Select features (space to toggle) · jwt, view

❯ cargo rustapi new my-api

cd my-api

error: unrecognized subcommand 'rustapi'

Usage: cargo rustapi <COMMAND>

For more information, try '--help'.
cd: no such file or directory: my-api
❯ cargo-rustapi new my-api
cd my-api
✔ Select a template · api - REST API with CRUD
✔ Select features (space to toggle) · jwt, view

Project configuration:
  Name:     my-api
  Template: Api
  Features: jwt, view

✔ Create project? · yes

✨ Project created successfully!

Next steps:
  cd my-api
  cargo run

Then open http://localhost:8080 in your browser.
❯ cargo run
    Updating crates.io index
     Locking 298 packages to latest compatible versions
      Adding generic-array v0.14.7 (available: v0.14.9)
   Compiling proc-macro2 v1.0.106
   Compiling unicode-ident v1.0.22
   Compiling quote v1.0.44
   Compiling memchr v2.7.6
   Compiling libc v0.2.180
   Compiling serde_core v1.0.228
   Compiling regex-syntax v0.8.8
   Compiling cfg-if v1.0.4
   Compiling itoa v1.0.17
   Compiling serde v1.0.228
   Compiling stable_deref_trait v1.2.1
   Compiling equivalent v1.0.2
   Compiling smallvec v1.15.1
   Compiling hashbrown v0.16.1
   Compiling crossbeam-utils v0.8.21
   Compiling once_cell v1.21.3
   Compiling aho-corasick v1.1.4
   Compiling siphasher v1.0.2
   Compiling log v0.4.29
   Compiling autocfg v1.5.0
   Compiling syn v2.0.114
   Compiling bstr v1.12.1
   Compiling jobserver v0.1.34
   Compiling crossbeam-epoch v0.9.18
   Compiling find-msvc-tools v0.1.8
   Compiling shlex v1.3.0
   Compiling same-file v1.0.6
   Compiling crossbeam-deque v0.8.6
   Compiling cc v1.2.54
   Compiling zmij v1.0.17
   Compiling regex-automata v0.4.13
   Compiling walkdir v2.5.0
   Compiling bytes v1.11.0
   Compiling pin-project-lite v0.2.16
   Compiling num-traits v0.2.19
   Compiling serde_json v1.0.149
   Compiling indexmap v2.13.0
   Compiling parking_lot_core v0.9.12
   Compiling version_check v0.9.5
   Compiling scopeguard v1.2.0
   Compiling futures-core v0.3.31
   Compiling lock_api v0.4.14
   Compiling errno v0.3.14
   Compiling pkg-config v0.3.32
   Compiling winnow v0.7.14
   Compiling bitflags v1.3.2
   Compiling toml_write v0.1.2
   Compiling rustversion v1.0.22
   Compiling regex v1.12.2
   Compiling zstd-sys v2.0.16+zstd.1.5.7
   Compiling globset v0.4.18
   Compiling parking_lot v0.12.5
   Compiling signal-hook-registry v1.4.8
   Compiling proc-macro-error-attr v1.0.4
   Compiling http v1.4.0
   Compiling socket2 v0.6.2
   Compiling getrandom v0.2.17
   Compiling synstructure v0.13.2
   Compiling mio v1.1.1
   Compiling tracing-core v0.1.36
   Compiling zerocopy v0.8.36
   Compiling litemap v0.8.1
   Compiling writeable v0.6.2
   Compiling lazy_static v1.5.0
   Compiling syn v1.0.109
   Compiling ryu v1.0.22
   Compiling fnv v1.0.7
   Compiling ignore v0.4.25
   Compiling proc-macro-error v1.0.4
   Compiling icu_properties_data v2.1.2
   Compiling icu_normalizer_data v2.1.1
   Compiling percent-encoding v2.3.2
   Compiling unsafe-libyaml v0.2.11
   Compiling arc-swap v1.8.0
   Compiling globwalk v0.8.1
   Compiling serde_derive v1.0.228
   Compiling zerofrom-derive v0.1.6
   Compiling yoke-derive v0.8.1
   Compiling zerovec-derive v0.11.2
   Compiling displaydoc v0.2.5
   Compiling zerofrom v0.1.6
   Compiling tokio-macros v2.6.0
   Compiling yoke v0.8.1
   Compiling zerovec v0.11.5
   Compiling tracing-attributes v0.1.31
   Compiling zerotrie v0.2.3
   Compiling tokio v1.49.0
   Compiling phf_shared v0.11.3
   Compiling slab v0.4.11
   Compiling tinystr v0.8.2
   Compiling potential_utf v0.1.4
   Compiling either v1.15.0
   Compiling icu_collections v2.1.1
   Compiling icu_locale_core v2.1.1
   Compiling rand_core v0.6.4
   Compiling alloc-no-stdlib v2.0.4
   Compiling zstd-safe v7.2.4
   Compiling crc32fast v1.5.0
   Compiling futures-sink v0.3.31
   Compiling tracing v0.1.44
   Compiling alloc-stdlib v0.2.2
   Compiling rand v0.8.5
   Compiling itertools v0.11.0
   Compiling icu_provider v2.1.1
   Compiling http-body v1.0.1
   Compiling adler2 v2.0.1
   Compiling base62 v2.2.3
   Compiling ident_case v1.0.1
   Compiling serde_spanned v0.6.9
   Compiling toml_datetime v0.6.11
   Compiling triomphe v0.1.15
   Compiling normpath v1.5.0
   Compiling toml_edit v0.22.27
   Compiling pin-utils v0.1.0
   Compiling strsim v0.11.1
   Compiling simd-adler32 v0.3.8
   Compiling darling_core v0.20.11
   Compili...

</details>



<!-- START COPILOT CODING AGENT SUFFIX -->

- Fixes Tuntii/RustAPI-examples#2

<!-- START COPILOT CODING AGENT TIPS -->
---

💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey).

…in phase11-demo/README.md

Co-authored-by: Tuntii <121901995+Tuntii@users.noreply.github.com>
Copilot AI changed the title [WIP] Update quickstart command for project creation Fix incorrect macro syntax in phase11-demo documentation Feb 1, 2026
Copilot AI requested a review from Tuntii February 1, 2026 01:26
@Tuntii Tuntii closed this Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant