root@ubuntu-1:~/github/sealfs# cargo build
Compiling sealfs v0.1.0 (/root/github/sealfs)
error[E0412]: cannot find type `Database` in this scope
--> src/server/storage_engine/default_engine.rs:33:18
|
33 | pub file_db: Database,
| ^^^^^^^^ not found in this scope
error[E0412]: cannot find type `Database` in this scope
--> src/server/storage_engine/default_engine.rs:34:17
|
34 | pub dir_db: Database,
| ^^^^^^^^ not found in this scope
error[E0412]: cannot find type `Database` in this scope
--> src/server/storage_engine/default_engine.rs:35:23
|
35 | pub file_attr_db: Database,
| ^^^^^^^^ not found in this scope
error[E0425]: cannot find value `file_db` in this scope
--> src/server/storage_engine/default_engine.rs:127:13
|
127 | file_db,
| ^^^^^^^ a field by this name exists in `Self`
error[E0425]: cannot find value `dir_db` in this scope
--> src/server/storage_engine/default_engine.rs:128:13
|
128 | dir_db,
| ^^^^^^ a field by this name exists in `Self`
error[E0425]: cannot find value `file_attr_db` in this scope
--> src/server/storage_engine/default_engine.rs:129:13
|
129 | file_attr_db,
| ^^^^^^^^^^^^ a field by this name exists in `Self`
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
--> src/server/storage_engine/default_engine.rs:172:21
|
172 | if let Some(value) = self.file_attr_db.db.get(path.as_bytes())? {
| ^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[u8]`
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
--> src/server/storage_engine/default_engine.rs:172:16
|
172 | if let Some(value) = self.file_attr_db.db.get(path.as_bytes())? {
| ^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[u8]`
note: required by a bound in `client::_::_serde::__private::Some`
--> /root/.rustup/toolchains/1.62.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:518:17
|
518 | pub enum Option<T> {
| ^ required by this bound in `client::_::_serde::__private::Some`
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
--> src/server/storage_engine/default_engine.rs:172:30
|
172 | if let Some(value) = self.file_attr_db.db.get(path.as_bytes())? {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[u8]`
note: required by a bound in `std::option::Option`
--> /root/.rustup/toolchains/1.62.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:518:17
|
518 | pub enum Option<T> {
| ^ required by this bound in `std::option::Option`
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
--> src/server/storage_engine/default_engine.rs:173:74
|
173 | debug!("read_dir getting attr, path: {}, value: {:?}", path, value);
| ^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[u8]`
note: required by a bound in `ArgumentV1::<'a>::new_debug`
--> /root/.rustup/toolchains/1.62.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:340:5
|
340 | arg_new!(new_debug, Debug);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ArgumentV1::<'a>::new_debug`
= note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
--> src/server/storage_engine/default_engine.rs:197:21
|
197 | Ok(Some(value)) => {
| ^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[u8]`
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
--> src/server/storage_engine/default_engine.rs:197:16
|
197 | Ok(Some(value)) => {
| ^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[u8]`
note: required by a bound in `client::_::_serde::__private::Some`
--> /root/.rustup/toolchains/1.62.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:518:17
|
518 | pub enum Option<T> {
| ^ required by this bound in `client::_::_serde::__private::Some`
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
--> src/server/storage_engine/default_engine.rs:258:18
|
258 | Some(value) => {
| ^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[u8]`
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
--> src/server/storage_engine/default_engine.rs:258:13
|
258 | Some(value) => {
| ^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[u8]`
note: required by a bound in `client::_::_serde::__private::Some`
--> /root/.rustup/toolchains/1.62.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:518:17
|
518 | pub enum Option<T> {
| ^ required by this bound in `client::_::_serde::__private::Some`
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
--> src/server/storage_engine/default_engine.rs:257:35
|
257 | let mut file_attr = match self.file_attr_db.db.get(path.as_bytes())? {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[u8]`
note: required by a bound in `std::option::Option`
--> /root/.rustup/toolchains/1.62.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:518:17
|
518 | pub enum Option<T> {
| ^ required by this bound in `std::option::Option`
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
--> src/server/storage_engine/default_engine.rs:273:13
|
273 | None => {
| ^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[u8]`
note: required by a bound in `client::_::_serde::__private::None`
--> /root/.rustup/toolchains/1.62.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:518:17
|
518 | pub enum Option<T> {
| ^ required by this bound in `client::_::_serde::__private::None`
Some errors have detailed explanations: E0277, E0412, E0425.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `sealfs` due to 16 previous errors