Skip to content

Commit

Permalink
Rework spin deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
cypt4 committed Apr 29, 2024
1 parent 351a231 commit 2d7f22e
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 25 deletions.
8 changes: 8 additions & 0 deletions third_party/rust/chromium_crates_io/Cargo.lock

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

5 changes: 4 additions & 1 deletion third_party/rust/chromium_crates_io/gnrt_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ config_template = "vet_config.toml.hbs"

[resolve]
root = "chromium"
remove_crates = ['cc', 'link-cplusplus', 'wasi', 'winapi-i686-pc-windows-gnu', 'winapi-x86_64-pc-windows-gnu', 'minimal-lexical']
# spin is added by pasta-curves lazy_static/spin_no_std, but we don't want to
# use it and lazy_static is an upstream crate with a patch.crates-io so the
# feature (and dependency) do not get added to the build anyway
remove_crates = ['cc', 'link-cplusplus', 'wasi', 'winapi-i686-pc-windows-gnu', 'winapi-x86_64-pc-windows-gnu', 'minimal-lexical', 'spin']

[crate.bitvec]
extra_input_roots = ['../doc', '../README.md' ]
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ default-features = false

[dependencies.lazy_static]
version = "1.4.0"
features = ["spin_no_std"]
optional = true

[dependencies.rand]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"files":{}}
16 changes: 16 additions & 0 deletions third_party/rust/chromium_crates_io/vendor/spin-0.5.2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# @generated from third_party/rust/chromium_crates_io/removed_Cargo.toml
# by tools/crates/gnrt. Do not edit!

# This is an empty crate that has replaced the 'spin' crate, since
# it was listed in `resolve.remove_crates` in gnrt_config.toml.

[package]
name = "spin"
version = "0.5.2"

[features]

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// @generated from third_party/rust/chromium_crates_io/removed_lib.rs
// by tools/crates/gnrt. Do not edit!

// This is an empty crate that has replaced the 'spin' crate, since
// it was listed in `resolve.remove_crates` in gnrt_config.toml.

0 comments on commit 2d7f22e

Please sign in to comment.