Skip to content

Commit

Permalink
Remove data traits in favor of fuel-storage (#4)
Browse files Browse the repository at this point in the history
The traits were moved to `fuel-storage` so the map requirements won't
overlap with the infrastructure types for the VM and client.
  • Loading branch information
vlopes11 authored Sep 29, 2021
1 parent f0672ed commit 7b5e6a1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 142 deletions.
6 changes: 3 additions & 3 deletions fuel-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "fuel-data"
name = "fuel-types"
version = "0.1.0"
authors = ["Victor Lopez <victor.lopez@fuel.sh>"]
edition = "2018"
repository = "https://github.com/FuelLabs/fuel-data"
description = "Fuel data traits and types."
repository = "https://github.com/FuelLabs/fuel-types"
description = "Fuel data types."

[dependencies]
rand = { version = "0.8", optional = true }
Expand Down
12 changes: 5 additions & 7 deletions fuel-types/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# Fuel Data
# Fuel Types

Provides base data types for the Fuel infrastructure.

The traits `Storage` and `MerkleStorage` will be used as base in fuel-vm to define the client requirements for the VM implementation.
Fuel infrastructure base data types.

# Features

* `default/std` - Enable `libstd` functionalities with `Storage` and `MerkleStorage`.
* `default/std` - Enable `libstd` functionalities and `std::io` implementations for the provided types.
* `random` - Enable `std` and create random generator implementations for the provided types.
* `serde-types` - Enable `serde::{serialize, deserialize}` for the provided types
* `serde-types-minimal` - Enable `no-std` `serde::{serialize, deserialize}` for the provided types
* `serde-types` - Enable `serde::{serialize, deserialize}` for the provided types.
* `serde-types-minimal` - Enable `no-std` `serde::{serialize, deserialize}` for the provided types.
124 changes: 0 additions & 124 deletions fuel-types/src/data.rs

This file was deleted.

9 changes: 1 addition & 8 deletions fuel-types/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
#![cfg_attr(not(feature = "std"), no_std)]

pub mod bytes;

mod types;

pub mod bytes;
pub use types::*;

#[cfg(feature = "std")]
mod data;

#[cfg(feature = "std")]
pub use data::*;

/// Register ID type
pub type RegisterId = usize;

Expand Down

0 comments on commit 7b5e6a1

Please sign in to comment.