Skip to content

Commit 5234cc8

Browse files
authored
docs(cargo-php): add locked option to install guide (#370)
Refs: #314
1 parent 2aab48f commit 5234cc8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub fn module(module: ModuleBuilder) -> ModuleBuilder {
4141
Use [`cargo-php`] to build IDE stubs and install the extension:
4242

4343
```text
44-
$ cargo install cargo-php
44+
$ cargo install cargo-php --locked
4545
Installing cargo-php v0.1.0
4646
$ cargo php stubs --stdout
4747
Compiling example-ext v0.1.0
@@ -148,7 +148,7 @@ best resource at the moment. This can be viewed at [docs.rs].
148148
functionality to be cross-platform is on the roadmap.
149149
- To build the application in `DEBUG` mode on Windows,
150150
you must have a `PHP SDK` built with the `DEBUG` option enabled
151-
and specify the `PHP_LIB` to the folder containing the lib files.
151+
and specify the `PHP_LIB` to the folder containing the lib files.
152152
For example: set `PHP_LIB=C:\php-sdk\php-dev\vc16\x64\php-8.3.13-src\x64\Debug_TS`.
153153

154154
[vectorcall]: https://docs.microsoft.com/en-us/cpp/cpp/vectorcall?view=msvc-170

crates/cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Installs extensions and generates stub files for PHP extensions generated with
77

88
## Installation
99

10-
Install with Cargo: `cargo install cargo-php`.
10+
Install with Cargo: `cargo install cargo-php --locked`.
1111

1212
## Usage
1313

guide/src/getting-started/cargo-php.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The subcommand is installed through composer like any other Rust CLI
3131
application:
3232

3333
```text
34-
$ cargo install cargo-php
34+
$ cargo install cargo-php --locked
3535
```
3636

3737
You can then call the application via `cargo php` (assuming the cargo

0 commit comments

Comments
 (0)