Add WASM CI checks and make availability-store compile for WASM (#626)

* Make availability-store compile for WASM

* Use --manifest-path instead
This commit is contained in:
Pierre Krieger
2019-11-29 16:12:16 +01:00
committed by Gavin Wood
parent 33eb0b7ba6
commit ed7ee57290
3 changed files with 24 additions and 4 deletions
+3 -1
View File
@@ -12,5 +12,7 @@ log = "0.4.8"
codec = { package = "parity-scale-codec", version = "1.1.0", default-features = false, features = ["derive"] }
substrate-primitives = { git = "https://github.com/paritytech/substrate", branch = "polkadot-master" }
kvdb = "0.1.1"
kvdb-rocksdb = "0.2"
kvdb-memorydb = "0.1.2"
[target.'cfg(not(target_os = "unknown"))'.dependencies]
kvdb-rocksdb = "0.2"
+2 -1
View File
@@ -22,7 +22,6 @@
use codec::{Encode, Decode};
use kvdb::{KeyValueDB, DBTransaction};
use kvdb_rocksdb::{Database, DatabaseConfig};
use polkadot_primitives::Hash;
use polkadot_primitives::parachain::{Id as ParaId, BlockData, Message};
use log::warn;
@@ -74,7 +73,9 @@ pub struct Store {
impl Store {
/// Create a new `Store` with given config on disk.
#[cfg(not(target_os = "unknown"))]
pub fn new(config: Config) -> io::Result<Self> {
use kvdb_rocksdb::{Database, DatabaseConfig};
let mut db_config = DatabaseConfig::with_columns(Some(columns::NUM_COLUMNS));
if let Some(cache_size) = config.cache_size {