mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Merge pull request #38 from phil-opp/replace_wildcard_dependecies
Replace wildcards in dependencies with a lower bound
This commit is contained in:
@@ -7,5 +7,5 @@ authors = ["Philipp Oppermann <dev@phil-opp.com>"]
|
||||
crate-type = ["staticlib"]
|
||||
|
||||
[dependencies]
|
||||
rlibc = "*"
|
||||
spin = "*"
|
||||
rlibc = "0.1.4"
|
||||
spin = "0.3.4"
|
||||
|
||||
@@ -131,7 +131,7 @@ Fortunately there already is a crate for that: [rlibc]. When we look at its [sou
|
||||
```toml
|
||||
...
|
||||
[dependencies]
|
||||
rlibc = "*"
|
||||
rlibc = "0.1.4"
|
||||
```
|
||||
and an `extern crate` definition in our `src/lib.rs`:
|
||||
|
||||
|
||||
@@ -315,8 +315,8 @@ To use a spinning mutex, we can add the [spin crate] as a dependency in Cargo.to
|
||||
```toml
|
||||
...
|
||||
[dependencies]
|
||||
rlibc = "*"
|
||||
spin = "*"
|
||||
rlibc = "0.1.4"
|
||||
spin = "0.3.4"
|
||||
```
|
||||
and a `extern crate spin;` definition in `src/lib.rs`. Then we can use the spinning Mutex to provide interior mutability to our static writer:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user