Skip to content

Commit

Permalink
Bug 1844000 - Patch redox_syscall to an empty crate. r=emilio,sylvestre
Browse files Browse the repository at this point in the history
Also preemptively add 0.3 for future needs.

Differential Revision: https://phabricator.services.mozilla.com/D183823
  • Loading branch information
glandium committed Jul 19, 2023
1 parent 1c3c925 commit f375009
Show file tree
Hide file tree
Showing 36 changed files with 37 additions and 3,963 deletions.
14 changes: 8 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ serde_with = { path = "build/rust/serde_with" }
# Patch redox_users to an empty crate
redox_users = { path = "build/rust/redox_users" }

# Patch redox_syscall to an empty crate
redox_syscall_0_2 = { package = "redox_syscall", path = "build/rust/redox_syscall_0_2" }
redox_syscall = { path = "build/rust/redox_syscall" }

# Patch env_logger 0.9 to 0.10
env_logger = { path = "build/rust/env_logger" }

Expand Down
8 changes: 8 additions & 0 deletions build/rust/redox_syscall/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "redox_syscall"
version = "0.3.999"
edition = "2018"
license = "MPL-2.0"

[lib]
path = "lib.rs"
3 changes: 3 additions & 0 deletions build/rust/redox_syscall/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
11 changes: 11 additions & 0 deletions build/rust/redox_syscall_0_2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[package]
name = "redox_syscall"
version = "0.2.999"
edition = "2018"
license = "MPL-2.0"

[lib]
path = "lib.rs"

[dependencies]
redox_syscall = "0.3"
3 changes: 3 additions & 0 deletions build/rust/redox_syscall_0_2/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
1 change: 0 additions & 1 deletion third_party/rust/redox_syscall/.cargo-checksum.json

This file was deleted.

26 changes: 0 additions & 26 deletions third_party/rust/redox_syscall/Cargo.toml

This file was deleted.

22 changes: 0 additions & 22 deletions third_party/rust/redox_syscall/LICENSE

This file was deleted.

6 changes: 0 additions & 6 deletions third_party/rust/redox_syscall/README.md

This file was deleted.

132 changes: 0 additions & 132 deletions third_party/rust/redox_syscall/src/arch/aarch64.rs

This file was deleted.

26 changes: 0 additions & 26 deletions third_party/rust/redox_syscall/src/arch/nonredox.rs

This file was deleted.

93 changes: 0 additions & 93 deletions third_party/rust/redox_syscall/src/arch/riscv64.rs

This file was deleted.

Loading

0 comments on commit f375009

Please sign in to comment.