@@ -82,7 +82,7 @@ crate is built:
82
82
of the directory itself (which corresponds to some types of changes within the
83
83
directory, depending on platform) will trigger a rebuild. To request a re-run
84
84
on any changes within an entire directory, print a line for the directory and
85
- another line for everything inside it, recursively.)
85
+ another line for everything inside it, recursively.)
86
86
Note that if the build script itself (or one of its dependencies) changes,
87
87
then it's rebuilt and rerun unconditionally, so
88
88
` cargo:rerun-if-changed=build.rs ` is almost always redundant (unless you
@@ -427,7 +427,7 @@ script is again to farm out as much of this as possible to make this as easy as
427
427
possible for consumers.
428
428
429
429
As an example to follow, let’s take a look at one of [ Cargo’s own
430
- dependencies] [ git2-rs ] , [ libgit2] [ libgit2 ] . This library has a number of
430
+ dependencies] [ git2-rs ] , [ libgit2] [ libgit2 ] . The C library has a number of
431
431
constraints:
432
432
433
433
[ git2-rs ] : https://github.com/alexcrichton/git2-rs/tree/master/libgit2-sys
@@ -441,7 +441,7 @@ constraints:
441
441
* It can be built from source using ` cmake ` .
442
442
443
443
To visualize what’s going on here, let’s take a look at the manifest for the
444
- relevant Cargo package.
444
+ relevant Cargo package that links to the native C library .
445
445
446
446
``` toml
447
447
[package ]
@@ -464,11 +464,12 @@ As the above manifests show, we’ve got a `build` script specified, but it’s
464
464
worth noting that this example has a ` links ` entry which indicates that the
465
465
crate (` libgit2-sys ` ) links to the ` git2 ` native library.
466
466
467
- Here we also see the unconditional dependency on ` libssh2 ` via the
468
- ` libssh2-sys ` crate, as well as a platform-specific dependency on ` openssl-sys `
469
- for \* nix (other variants elided for now). It may seem a little counterintuitive
470
- to express * C dependencies* in the * Cargo manifest* , but this is actually using
471
- one of Cargo’s conventions in this space.
467
+ Here we also see that we chose to have the Rust crate have an unconditional
468
+ dependency on ` libssh2 ` via the ` libssh2-sys ` crate, as well as a
469
+ platform-specific dependency on ` openssl-sys ` for \* nix (other variants elided
470
+ for now). It may seem a little counterintuitive to express * C dependencies* in
471
+ the * Cargo manifest* , but this is actually using one of Cargo’s conventions in
472
+ this space.
472
473
473
474
## ` *-sys ` Packages
474
475
0 commit comments