Skip to content

Commit

Permalink
refactor: don't rename package (#108)
Browse files Browse the repository at this point in the history
Instead of renaming `fvm_ipld_bitfield` to `bitfield`, use its original
name. This also makes patching easier.
  • Loading branch information
vmx authored Mar 17, 2022
1 parent 5185c8e commit b872068
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion actors/market/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ crate-type = ["cdylib", "lib"]
fil_actors_runtime = { version = "8.0.0-alpha.1", path = "../runtime" }
fvm_ipld_hamt = "0.2.0"
fvm_shared = { version = "0.2.0", default-features = false }
bitfield = { version = "0.2.0", package = "fvm_ipld_bitfield" }
fvm_ipld_bitfield = { version = "0.2.0" }
num-traits = "0.2.14"
num-derive = "0.3.3"
ahash = "0.7.6"
Expand Down
2 changes: 1 addition & 1 deletion actors/market/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

use std::collections::{BTreeMap, BTreeSet};

use bitfield::BitField;
use fil_actors_runtime::runtime::{ActorCode, Runtime};
use fil_actors_runtime::{
actor_error, wasm_trampoline, ActorDowncast, ActorError, BURNT_FUNDS_ACTOR_ADDR,
CRON_ACTOR_ADDR, REWARD_ACTOR_ADDR, STORAGE_POWER_ACTOR_ADDR, SYSTEM_ACTOR_ADDR,
VERIFIED_REGISTRY_ACTOR_ADDR,
};
use fvm_ipld_bitfield::BitField;
use fvm_shared::actor::builtin::{Type, CALLER_TYPES_SIGNABLE};
use fvm_shared::address::Address;
use fvm_shared::bigint::BigInt;
Expand Down
2 changes: 1 addition & 1 deletion actors/market/src/types.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright 2019-2022 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0, MIT

use bitfield::BitField;
use cid::Cid;
use fil_actors_runtime::{Array, DealWeight};
use fvm_ipld_bitfield::BitField;
use fvm_shared::address::Address;
use fvm_shared::bigint::bigint_ser;
use fvm_shared::clock::ChainEpoch;
Expand Down
2 changes: 1 addition & 1 deletion actors/miner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ crate-type = ["cdylib", "lib"]
[dependencies]
fil_actors_runtime = { version = "8.0.0-alpha.1", path = "../runtime" }
fvm_shared = { version = "0.2.0", default-features = false }
bitfield = { version = "0.2.1", package = "fvm_ipld_bitfield" }
fvm_ipld_bitfield = { version = "0.2.1" }
fvm_ipld_amt = { version = "0.2.0", features = ["go-interop"] }
fvm_ipld_hamt = "0.2.0"
serde = { version = "1.0.136", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion actors/miner/src/bitfield_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

use std::convert::TryInto;

use bitfield::BitField;
use cid::Cid;
use fil_actors_runtime::{ActorDowncast, Array};
use fvm_ipld_amt::Error as AmtError;
use fvm_ipld_bitfield::BitField;
use fvm_shared::blockstore::Blockstore;
use fvm_shared::clock::{ChainEpoch, QuantSpec};
use itertools::Itertools;
Expand Down
2 changes: 1 addition & 1 deletion actors/miner/src/deadline_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ use std::cmp;
use std::collections::BTreeSet;

use anyhow::anyhow;
use bitfield::BitField;
use cid::multihash::Code;
use cid::Cid;
use fil_actors_runtime::runtime::Policy;
use fil_actors_runtime::{actor_error, ActorDowncast, ActorError, Array};
use fvm_ipld_bitfield::BitField;
use fvm_shared::blockstore::{Blockstore, CborStore};
use fvm_shared::clock::{ChainEpoch, QuantSpec};
use fvm_shared::econ::TokenAmount;
Expand Down
2 changes: 1 addition & 1 deletion actors/miner/src/expiration_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ use std::collections::{BTreeMap, BTreeSet};
use std::convert::TryInto;

use anyhow::anyhow;
use bitfield::BitField;
use cid::Cid;
use fil_actors_runtime::runtime::Policy;
use fil_actors_runtime::{ActorDowncast, Array};
use fvm_ipld_amt::{Error as AmtError, ValueMut};
use fvm_ipld_bitfield::BitField;
use fvm_shared::bigint::bigint_ser;
use fvm_shared::blockstore::Blockstore;
use fvm_shared::clock::{ChainEpoch, QuantSpec};
Expand Down
2 changes: 1 addition & 1 deletion actors/miner/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use std::iter;
use std::ops::Neg;

use anyhow::anyhow;
use bitfield::{BitField, UnvalidatedBitField, Validate};
pub use bitfield_queue::*;
use byteorder::{BigEndian, ByteOrder, WriteBytesExt};
use cid::multihash::Code;
Expand All @@ -22,6 +21,7 @@ use fil_actors_runtime::{
actor_error, wasm_trampoline, ActorDowncast, ActorError, BURNT_FUNDS_ACTOR_ADDR,
INIT_ACTOR_ADDR, REWARD_ACTOR_ADDR, STORAGE_MARKET_ACTOR_ADDR, STORAGE_POWER_ACTOR_ADDR,
};
use fvm_ipld_bitfield::{BitField, UnvalidatedBitField, Validate};
use fvm_shared::address::{Address, Payload, Protocol};
use fvm_shared::bigint::bigint_ser::BigIntSer;
use fvm_shared::bigint::{BigInt, Integer};
Expand Down
2 changes: 1 addition & 1 deletion actors/miner/src/partition_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ use std::convert::TryInto;
use std::ops::{self, Neg};

use anyhow::anyhow;
use bitfield::{BitField, UnvalidatedBitField, Validate};
use cid::Cid;
use fil_actors_runtime::runtime::Policy;
use fil_actors_runtime::{actor_error, ActorDowncast, Array};
use fvm_ipld_bitfield::{BitField, UnvalidatedBitField, Validate};
use fvm_shared::bigint::bigint_ser;
use fvm_shared::blockstore::Blockstore;
use fvm_shared::clock::{ChainEpoch, QuantSpec, NO_QUANTIZATION};
Expand Down
2 changes: 1 addition & 1 deletion actors/miner/src/sector_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use std::collections::BTreeMap;

use anyhow::anyhow;
use bitfield::{BitField, UnvalidatedBitField, Validate};
use fvm_ipld_bitfield::{BitField, UnvalidatedBitField, Validate};
use serde::{Deserialize, Serialize};

use fil_actors_runtime::runtime::Policy;
Expand Down
4 changes: 2 additions & 2 deletions actors/miner/src/sectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
use std::collections::BTreeSet;

use anyhow::anyhow;
use bitfield::BitField;
use cid::Cid;
use fil_actors_runtime::{actor_error, ActorDowncast, ActorError, Array};
use fvm_ipld_amt::Error as AmtError;
use fvm_ipld_bitfield::BitField;
use fvm_shared::blockstore::Blockstore;
use fvm_shared::error::ExitCode;
use fvm_shared::sector::{SectorNumber, MAX_SECTOR_NUMBER};
Expand All @@ -25,7 +25,7 @@ impl<'db, BS: Blockstore> Sectors<'db, BS> {

pub fn load_sector<'a>(
&self,
sector_numbers: impl bitfield::Validate<'a>,
sector_numbers: impl fvm_ipld_bitfield::Validate<'a>,
) -> Result<Vec<SectorOnChainInfo>, ActorError> {
let sector_numbers = match sector_numbers.validate() {
Ok(sector_numbers) => sector_numbers,
Expand Down
2 changes: 1 addition & 1 deletion actors/miner/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use std::cmp;
use std::ops::Neg;

use anyhow::anyhow;
use bitfield::BitField;
use cid::multihash::Code;
use cid::Cid;
use fil_actors_runtime::runtime::Policy;
Expand All @@ -14,6 +13,7 @@ use fil_actors_runtime::{
ActorError, Array,
};
use fvm_ipld_amt::Error as AmtError;
use fvm_ipld_bitfield::BitField;
use fvm_ipld_hamt::Error as HamtError;
use fvm_shared::address::Address;
use fvm_shared::bigint::bigint_ser;
Expand Down
2 changes: 1 addition & 1 deletion actors/miner/src/termination.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use std::collections::BTreeMap;
use std::ops::AddAssign;

use bitfield::BitField;
use fvm_ipld_bitfield::BitField;
use fvm_shared::clock::ChainEpoch;

#[derive(Default)]
Expand Down
2 changes: 1 addition & 1 deletion actors/miner/src/types.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright 2019-2022 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0, MIT

use bitfield::UnvalidatedBitField;
use cid::Cid;
use fil_actors_runtime::DealWeight;
use fvm_ipld_bitfield::UnvalidatedBitField;
use fvm_shared::address::Address;
use fvm_shared::bigint::bigint_ser;
use fvm_shared::clock::ChainEpoch;
Expand Down

0 comments on commit b872068

Please sign in to comment.