Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alecmocatta committed Jul 14, 2020
1 parent e0da6b2 commit 9216f90
Show file tree
Hide file tree
Showing 25 changed files with 100 additions and 24 deletions.
7 changes: 2 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ homepage = "https://github.com/alecmocatta/amadeus"
documentation = "https://docs.rs/amadeus"
readme = "README.md"
edition = "2018"
build = "src/build.rs"

[badges]
azure-devops = { project = "alecmocatta/amadeus", pipeline = "tests", build = "26" }
Expand Down Expand Up @@ -45,7 +44,7 @@ amadeus-parquet = { version = "=0.3.1", path = "amadeus-parquet", optional = tru
amadeus-postgres = { version = "=0.3.1", path = "amadeus-postgres", optional = true }
amadeus-serde = { version = "=0.3.1", path = "amadeus-serde", optional = true }
async-channel = "1.1"
constellation-rs = { version = "0.1", default-features = false, optional = true }
constellation-rs = { version = "0.2.0-alpha.2", default-features = false, optional = true }
derive-new = "0.5"
doc-comment = "0.3"
futures = "0.3"
Expand All @@ -69,9 +68,7 @@ rustversion = "1.0"
[patch.crates-io]
vec-utils = { version = "*", git = "https://github.com/alecmocatta/vec-utils", branch = "stable" }
streaming_algorithms = { version = "*", git = "https://github.com/alecmocatta/streaming_algorithms", branch = "stable" }
serde_closure = { version = "*", git = "https://github.com/alecmocatta/serde_closure", branch = "nameable" }
# serde_closure = { version = "*", path = "../serde_closure" }
# serde_traitobject = { version = "*", path = "../serde_traitobject" }
constellation-rs = { version = "0.2.0-alpha.2", git = "https://github.com/constellation-rs/constellation", branch = "dependabot/cargo/serde_closure-0.3" }

[[example]]
name = "cloudfront_logs"
Expand Down
1 change: 0 additions & 1 deletion amadeus-aws/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ homepage = "https://github.com/alecmocatta/amadeus"
documentation = "https://docs.rs/amadeus"
readme = "README.md"
edition = "2018"
build = "src/build.rs"

[badges]
azure-devops = { project = "alecmocatta/amadeus", pipeline = "tests", build = "26" }
Expand Down
12 changes: 12 additions & 0 deletions amadeus-aws/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
fn main() {
println!("cargo:rerun-if-changed=build.rs");

nightly();
}

#[rustversion::nightly]
fn nightly() {
println!("cargo:rustc-cfg=nightly");
}
#[rustversion::not(nightly)]
fn nightly() {}
1 change: 0 additions & 1 deletion amadeus-aws/src/build.rs

This file was deleted.

1 change: 0 additions & 1 deletion amadeus-commoncrawl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ homepage = "https://github.com/alecmocatta/amadeus"
documentation = "https://docs.rs/amadeus"
readme = "README.md"
edition = "2018"
build = "src/build.rs"

[badges]
azure-devops = { project = "alecmocatta/amadeus", pipeline = "tests", build = "26" }
Expand Down
12 changes: 12 additions & 0 deletions amadeus-commoncrawl/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
fn main() {
println!("cargo:rerun-if-changed=build.rs");

nightly();
}

#[rustversion::nightly]
fn nightly() {
println!("cargo:rustc-cfg=nightly");
}
#[rustversion::not(nightly)]
fn nightly() {}
1 change: 0 additions & 1 deletion amadeus-commoncrawl/src/build.rs

This file was deleted.

1 change: 0 additions & 1 deletion amadeus-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ homepage = "https://github.com/alecmocatta/amadeus"
documentation = "https://docs.rs/amadeus"
readme = "README.md"
edition = "2018"
build = "src/build.rs"

[badges]
azure-devops = { project = "alecmocatta/amadeus", pipeline = "tests", build = "26" }
Expand Down
12 changes: 12 additions & 0 deletions amadeus-core/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
fn main() {
println!("cargo:rerun-if-changed=build.rs");

nightly();
}

#[rustversion::nightly]
fn nightly() {
println!("cargo:rustc-cfg=nightly");
}
#[rustversion::not(nightly)]
fn nightly() {}
1 change: 0 additions & 1 deletion amadeus-core/src/build.rs

This file was deleted.

1 change: 0 additions & 1 deletion amadeus-parquet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ homepage = "https://github.com/alecmocatta/amadeus"
documentation = "https://docs.rs/amadeus"
readme = "README.md"
edition = "2018"
build = "src/build.rs"

[badges]
azure-devops = { project = "alecmocatta/amadeus", pipeline = "tests", build = "26" }
Expand Down
12 changes: 12 additions & 0 deletions amadeus-parquet/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
fn main() {
println!("cargo:rerun-if-changed=build.rs");

nightly();
}

#[rustversion::nightly]
fn nightly() {
println!("cargo:rustc-cfg=nightly");
}
#[rustversion::not(nightly)]
fn nightly() {}
1 change: 0 additions & 1 deletion amadeus-parquet/src/build.rs

This file was deleted.

2 changes: 1 addition & 1 deletion amadeus-parquet/src/internal/record/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::internal::{
BoolType, ByteArrayType, DoubleType, FixedLenByteArrayType, FloatType, Int32Type, Int64Type, Int96, Int96Type
}, errors::{ParquetError, Result}, record::{
display::{DisplayFmt, DisplaySchemaGroup}, predicates::{GroupPredicate, MapPredicate, ValuePredicate}, reader::{
BoolReader, BoxFixedLenByteArrayReader, BoxReader, ByteArrayReader, F32Reader, F64Reader, FixedLenByteArrayReader, GroupReader, I32Reader, I64Reader, I96Reader, KeyValueReader, MapReader, OptionReader, RepeatedReader, RootReader, TryIntoReader, TupleReader, ValueReader, VecU8Reader
BoolReader, BoxReader, ByteArrayReader, F32Reader, F64Reader, FixedLenByteArrayReader, GroupReader, I32Reader, I64Reader, I96Reader, KeyValueReader, MapReader, OptionReader, RepeatedReader, RootReader, TryIntoReader, TupleReader, ValueReader, VecU8Reader
}, schemas::{
BoolSchema, BoxSchema, BsonSchema, ByteArraySchema, DateSchema, DateTimeSchema, DecimalSchema, EnumSchema, F32Schema, F64Schema, FixedByteArraySchema, GroupSchema, I16Schema, I32Schema, I64Schema, I8Schema, JsonSchema, ListSchema, ListSchemaType, MapSchema, OptionSchema, RootSchema, StringSchema, TimeSchema, TupleSchema, U16Schema, U32Schema, U64Schema, U8Schema, ValueSchema, VecU8Schema
}, triplet::TypedTripletIter, types::{downcast, Downcast, Root}, ParquetData, Predicate, Reader, Schema
Expand Down
1 change: 0 additions & 1 deletion amadeus-postgres/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ homepage = "https://github.com/alecmocatta/amadeus"
documentation = "https://docs.rs/amadeus"
readme = "README.md"
edition = "2018"
build = "src/build.rs"

[badges]
azure-devops = { project = "alecmocatta/amadeus", pipeline = "tests", build = "26" }
Expand Down
12 changes: 12 additions & 0 deletions amadeus-postgres/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
fn main() {
println!("cargo:rerun-if-changed=build.rs");

nightly();
}

#[rustversion::nightly]
fn nightly() {
println!("cargo:rustc-cfg=nightly");
}
#[rustversion::not(nightly)]
fn nightly() {}
1 change: 0 additions & 1 deletion amadeus-postgres/src/build.rs

This file was deleted.

1 change: 0 additions & 1 deletion amadeus-serde/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ homepage = "https://github.com/alecmocatta/amadeus"
documentation = "https://docs.rs/amadeus"
readme = "README.md"
edition = "2018"
build = "src/build.rs"

[badges]
azure-devops = { project = "alecmocatta/amadeus", pipeline = "tests", build = "26" }
Expand Down
12 changes: 12 additions & 0 deletions amadeus-serde/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
fn main() {
println!("cargo:rerun-if-changed=build.rs");

nightly();
}

#[rustversion::nightly]
fn nightly() {
println!("cargo:rustc-cfg=nightly");
}
#[rustversion::not(nightly)]
fn nightly() {}
1 change: 0 additions & 1 deletion amadeus-serde/src/build.rs

This file was deleted.

1 change: 0 additions & 1 deletion amadeus-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ homepage = "https://github.com/alecmocatta/amadeus"
documentation = "https://docs.rs/amadeus"
readme = "README.md"
edition = "2018"
build = "src/build.rs"

[badges]
azure-devops = { project = "alecmocatta/amadeus", pipeline = "tests", build = "26" }
Expand Down
12 changes: 12 additions & 0 deletions amadeus-types/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
fn main() {
println!("cargo:rerun-if-changed=build.rs");

nightly();
}

#[rustversion::nightly]
fn nightly() {
println!("cargo:rustc-cfg=nightly");
}
#[rustversion::not(nightly)]
fn nightly() {}
1 change: 0 additions & 1 deletion amadeus-types/src/build.rs

This file was deleted.

12 changes: 12 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
fn main() {
println!("cargo:rerun-if-changed=build.rs");

nightly();
}

#[rustversion::nightly]
fn nightly() {
println!("cargo:rustc-cfg=nightly");
}
#[rustversion::not(nightly)]
fn nightly() {}
5 changes: 1 addition & 4 deletions src/pool/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ use super::{
util::{assert_sync_and_send, OnDrop, Panicked, RoundRobin, Synchronize}, ThreadPool
};

trait FnOnce<Args>: traits::FnOnceBox<Args> + st::Serialize + st::Deserialize {}
impl<T, Args> FnOnce<Args> for T where T: traits::FnOnce<Args> + st::Serialize + st::Deserialize {}

#[serde_closure::desugar]
type Request = st::Box<dyn FnOnce(&ThreadPool) -> LocalBoxFuture<'static, Response> + Send>;
type Request = st::Box<dyn st::sc::FnOnce(&ThreadPool) -> LocalBoxFuture<'static, Response> + Send>;
type Response = Box<dyn st::Any + Send>;

mod future_ext {
Expand Down

0 comments on commit 9216f90

Please sign in to comment.