I am trying to use the updated libsqlite-sys
crate that is in the master branch on the git repo. I have updated my Cargo.toml
to this:
diesel = { path = "../diesel/diesel", features = ["sqlite", "numeric", "chrono"] }
diesel_migrations = { path = "../diesel/diesel_migrations" }
I get the following error when I try to build:
Compiling diesel v1.4.2 (/Users/username/code/rust/diesel/diesel)
error[E0433]: failed to resolve: could not find `sqlite` in `diesel`
--> /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.4.2/src/sql_types/mod.rs:37:48
|
37 | #[derive(Debug, Clone, Copy, Default, QueryId, SqlType)]
| ^^^^^^^ could not find `sqlite` in `diesel`
error[E0433]: failed to resolve: could not find `sqlite` in `diesel`
--> /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.4.2/src/sql_types/mod.rs:75:48
|
75 | #[derive(Debug, Clone, Copy, Default, QueryId, SqlType)]
| ^^^^^^^ could not find `sqlite` in `diesel`
error[E0433]: failed to resolve: could not find `sqlite` in `diesel`
--> /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.4.2/src/sql_types/mod.rs:96:48
|
96 | #[derive(Debug, Clone, Copy, Default, QueryId, SqlType)]
| ^^^^^^^ could not find `sqlite` in `diesel`
error[E0433]: failed to resolve: could not find `sqlite` in `diesel`
--> /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.4.2/src/sql_types/mod.rs:115:48
|
115 | #[derive(Debug, Clone, Copy, Default, QueryId, SqlType)]
| ^^^^^^^ could not find `sqlite` in `diesel`
error[E0433]: failed to resolve: could not find `sqlite` in `diesel`
--> /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.4.2/src/sql_types/mod.rs:136:48
|
136 | #[derive(Debug, Clone, Copy, Default, QueryId, SqlType)]
| ^^^^^^^ could not find `sqlite` in `diesel`
error[E0433]: failed to resolve: could not find `sqlite` in `diesel`
--> /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.4.2/src/sql_types/mod.rs:155:48
|
155 | #[derive(Debug, Clone, Copy, Default, QueryId, SqlType)]
| ^^^^^^^ could not find `sqlite` in `diesel`
error[E0433]: failed to resolve: could not find `sqlite` in `diesel`
--> /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.4.2/src/sql_types/mod.rs:177:48
|
177 | #[derive(Debug, Clone, Copy, Default, QueryId, SqlType)]
| ^^^^^^^ could not find `sqlite` in `diesel`
error[E0433]: failed to resolve: could not find `sqlite` in `diesel`
--> /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.4.2/src/sql_types/mod.rs:205:48
|
205 | #[derive(Debug, Clone, Copy, Default, QueryId, SqlType)]
| ^^^^^^^ could not find `sqlite` in `diesel`
error[E0433]: failed to resolve: could not find `sqlite` in `diesel`
--> /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.4.2/src/sql_types/mod.rs:248:48
|
248 | #[derive(Debug, Clone, Copy, Default, QueryId, SqlType)]
| ^^^^^^^ could not find `sqlite` in `diesel`
error[E0433]: failed to resolve: could not find `sqlite` in `diesel`
--> /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.4.2/src/sql_types/mod.rs:278:48
|
278 | #[derive(Debug, Clone, Copy, Default, QueryId, SqlType)]
| ^^^^^^^ could not find `sqlite` in `diesel`
error[E0433]: failed to resolve: could not find `sqlite` in `diesel`
--> /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.4.2/src/sql_types/mod.rs:313:48
|
313 | #[derive(Debug, Clone, Copy, Default, QueryId, SqlType)]
| ^^^^^^^ could not find `sqlite` in `diesel`
error[E0433]: failed to resolve: could not find `sqlite` in `diesel`
--> /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.4.2/src/sql_types/mod.rs:336:48
|
336 | #[derive(Debug, Clone, Copy, Default, QueryId, SqlType)]
| ^^^^^^^ could not find `sqlite` in `diesel`
error: cannot find macro `sql_function_proc!` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/functions/mod.rs:167:9
|
167 | sql_function_proc! { $($args)* }
| ^^^^^^^^^^^^^^^^^ help: a macro with a similar name exists: `sql_function`
|
::: /Users/username/code/rust/diesel/diesel/src/expression/functions/aggregate_folding.rs:3:1
|
3 | / sql_function! {
4 | | /// Represents a SQL `SUM` function. This function can only take types which are
5 | | /// Foldable.
6 | | ///
... |
21 | | fn sum<ST: Foldable>(expr: ST) -> ST::Sum;
22 | | }
| |_- in this macro invocation
error: cannot find macro `sql_function_proc!` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/functions/mod.rs:167:9
|
167 | sql_function_proc! { $($args)* }
| ^^^^^^^^^^^^^^^^^ help: a macro with a similar name exists: `sql_function`
|
::: /Users/username/code/rust/diesel/diesel/src/expression/functions/aggregate_folding.rs:24:1
|
24 | / sql_function! {
25 | | /// Represents a SQL `AVG` function. This function can only take types which are
26 | | /// Foldable.
27 | | ///
... |
68 | | fn avg<ST: Foldable>(expr: ST) -> ST::Avg;
69 | | }
| |_- in this macro invocation
error: cannot find macro `sql_function_proc!` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/functions/mod.rs:167:9
|
167 | sql_function_proc! { $($args)* }
| ^^^^^^^^^^^^^^^^^ help: a macro with a similar name exists: `sql_function`
|
::: /Users/username/code/rust/diesel/diesel/src/expression/functions/aggregate_ordering.rs:3:1
|
3 | / sql_function! {
4 | | /// Represents a SQL `MAX` function. This function can only take types which are
5 | | /// ordered.
6 | | ///
... |
20 | | fn max<ST: SqlOrd + IntoNullable>(expr: ST) -> ST::Nullable;
21 | | }
| |_- in this macro invocation
error: cannot find macro `sql_function_proc!` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/functions/mod.rs:167:9
|
167 | sql_function_proc! { $($args)* }
| ^^^^^^^^^^^^^^^^^ help: a macro with a similar name exists: `sql_function`
|
::: /Users/username/code/rust/diesel/diesel/src/expression/functions/aggregate_ordering.rs:23:1
|
23 | / sql_function! {
24 | | /// Represents a SQL `MIN` function. This function can only take types which are
25 | | /// ordered.
26 | | ///
... |
40 | | fn min<ST: SqlOrd + IntoNullable>(expr: ST) -> ST::Nullable;
41 | | }
| |_- in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/functions/date_and_time.rs:11:39
|
11 | #[derive(Debug, Copy, Clone, QueryId, NonAggregate)]
| ^^^^^^^^^^^^
error: cannot find macro `sql_function_proc!` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/functions/mod.rs:167:9
|
167 | sql_function_proc! { $($args)* }
| ^^^^^^^^^^^^^^^^^ help: a macro with a similar name exists: `sql_function`
|
::: /Users/username/code/rust/diesel/diesel/src/expression/functions/date_and_time.rs:29:1
|
29 | / sql_function! {
30 | | /// Represents the SQL `DATE` function. The argument should be a Timestamp
31 | | /// expression, and the return value will be an expression of type Date.
32 | |
... |
46 | | fn date(expr: Timestamp) -> Date;
47 | | }
| |_- in this macro invocation
error[E0433]: failed to resolve: could not find `max` in `aggregate_ordering`
--> /Users/username/code/rust/diesel/diesel/src/expression/functions/helper_types.rs:12:49
|
12 | pub type max<Expr> = super::aggregate_ordering::max::HelperType<SqlTypeOf<Expr>, Expr>;
| ^^^ could not find `max` in `aggregate_ordering`
error[E0433]: failed to resolve: could not find `min` in `aggregate_ordering`
--> /Users/username/code/rust/diesel/diesel/src/expression/functions/helper_types.rs:15:49
|
15 | pub type min<Expr> = super::aggregate_ordering::min::HelperType<SqlTypeOf<Expr>, Expr>;
| ^^^ could not find `min` in `aggregate_ordering`
error[E0433]: failed to resolve: could not find `sum` in `aggregate_folding`
--> /Users/username/code/rust/diesel/diesel/src/expression/functions/helper_types.rs:18:48
|
18 | pub type sum<Expr> = super::aggregate_folding::sum::HelperType<SqlTypeOf<Expr>, Expr>;
| ^^^ could not find `sum` in `aggregate_folding`
error[E0433]: failed to resolve: could not find `avg` in `aggregate_folding`
--> /Users/username/code/rust/diesel/diesel/src/expression/functions/helper_types.rs:21:48
|
21 | pub type avg<Expr> = super::aggregate_folding::avg::HelperType<SqlTypeOf<Expr>, Expr>;
| ^^^ could not find `avg` in `aggregate_folding`
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/array_comparison.rs:8:39
|
8 | #[derive(Debug, Copy, Clone, QueryId, NonAggregate)]
| ^^^^^^^^^^^^
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/array_comparison.rs:14:39
|
14 | #[derive(Debug, Copy, Clone, QueryId, NonAggregate)]
| ^^^^^^^^^^^^
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/array_comparison.rs:143:24
|
143 | #[derive(Debug, Clone, NonAggregate)]
| ^^^^^^^^^^^^
error: cannot find macro `sql_function_proc!` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/functions/mod.rs:167:9
|
167 | sql_function_proc! { $($args)* }
| ^^^^^^^^^^^^^^^^^ help: a macro with a similar name exists: `sql_function`
|
::: /Users/username/code/rust/diesel/diesel/src/expression/count.rs:7:1
|
7 | / sql_function! {
8 | | /// Creates a SQL `COUNT` expression
9 | | ///
10 | | /// As with most bare functions, this is not exported by default. You can import
... |
28 | | fn count<T>(expr: T) -> BigInt;
29 | | }
| |_- in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/grouped.rs:6:66
|
6 | #[derive(Debug, Copy, Clone, QueryId, Default, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/nullable.rs:8:48
|
8 | #[derive(Debug, Copy, Clone, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:64:65
|
64 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
...
362 | infix_operator!(And, " AND ");
| ------------------------------ in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:64:65
|
64 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
...
363 | infix_operator!(Between, " BETWEEN ");
| -------------------------------------- in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:64:65
|
64 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
...
364 | infix_operator!(Escape, " ESCAPE ");
| ------------------------------------ in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:64:65
|
64 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
...
365 | infix_operator!(Eq, " = ");
| --------------------------- in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:64:65
|
64 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
...
366 | infix_operator!(Gt, " > ");
| --------------------------- in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:64:65
|
64 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
...
367 | infix_operator!(GtEq, " >= ");
| ------------------------------ in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:64:65
|
64 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
...
368 | infix_operator!(Like, " LIKE ");
| -------------------------------- in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:64:65
|
64 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
...
369 | infix_operator!(Lt, " < ");
| --------------------------- in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:64:65
|
64 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
...
370 | infix_operator!(LtEq, " <= ");
| ------------------------------ in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:64:65
|
64 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
...
371 | infix_operator!(NotBetween, " NOT BETWEEN ");
| --------------------------------------------- in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:64:65
|
64 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
...
372 | infix_operator!(NotEq, " != ");
| ------------------------------- in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:64:65
|
64 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
...
373 | infix_operator!(NotLike, " NOT LIKE ");
| --------------------------------------- in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:64:65
|
64 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
...
374 | infix_operator!(Or, " OR ");
| ---------------------------- in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:64:65
|
64 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
...
376 | postfix_operator!(IsNull, " IS NULL");
| -------------------------------------- in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:64:65
|
64 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
...
377 | postfix_operator!(IsNotNull, " IS NOT NULL");
| --------------------------------------------- in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:64:65
|
64 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
...
378 | postfix_operator!(Asc, " ASC", ());
| ----------------------------------- in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:64:65
|
64 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
...
379 | postfix_operator!(Desc, " DESC", ());
| ------------------------------------- in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:64:65
|
64 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
...
381 | prefix_operator!(Not, "NOT ");
| ------------------------------ in this macro invocation
error: cannot find derive macro `NonAggregate` in this scope
--> /Users/username/code/rust/diesel/diesel/src/expression/operators.rs:410:57
|
410 | #[derive(Debug, Clone, Copy, QueryId, DieselNumericOps, NonAggregate)]
| ^^^^^^^^^^^^
error[E0433]: failed to resolve: could not find `count` in `count`
--> /Users/username/code/rust/diesel/diesel/src/expression/mod.rs:73:42
|
73 | pub type count<Expr> = super::count::count::HelperType<SqlTypeOf<Expr>, Expr>;
| ^^^^^ could not find `count` in `count`
error[E0433]: failed to resolve: could not find `date` in `date_and_time`
--> /Users/username/code/rust/diesel/diesel/src/expression/mod.rs:79:60
|
79 | pub type date<Expr> = super::functions::date_and_time::date::HelperType<Expr>;
| ^^^^ could not find `date` in `date_and_time`
error: unused import: `sql_types::Foldable`
--> /Users/username/code/rust/diesel/diesel/src/expression/functions/aggregate_folding.rs:1:5
|
1 | use sql_types::Foldable;
| ^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
--> /Users/username/code/rust/diesel/diesel/src/lib.rs:99:5
|
99| warnings,
| ^^^^^^^^
= note: `#[deny(unused_imports)]` implied by `#[deny(warnings)]`
error: unused imports: `IntoNullable`, `SqlOrd`
--> /Users/username/code/rust/diesel/diesel/src/expression/functions/aggregate_ordering.rs:1:17
|
1 | use sql_types::{IntoNullable, SqlOrd};
| ^^^^^^^^^^^^ ^^^^^^
error: aborting due to 12 previous errors
For more information about this error, try `rustc --explain E0433`.
error: Could not compile `diesel`.
warning: build failed, waiting for other jobs to finish...
error: aborting due to 39 previous errors
For more information about this error, try `rustc --explain E0433`.
error: Could not compile `diesel`.
To learn more, run the command again with --verbose.
What is wrong?