tokio 0.2(async await)λ₯Ό μ¬μ©νλ μ±μ rust-rocksdbλ₯Ό ν¬ν¨νλ €κ³ νκ³ 1.39.0-beta.1μ μ¬μ©νμ¬ μ»΄νμΌνλ €κ³ νλ©΄ λ€μ μ€λ₯κ° λ°μν©λλ€.
error[E0277]: arrays only have std trait implementations for lengths 0..=32
--> /my-app/target/debug/build/librocksdb-sys-a3849244a8784e5d/out/bindings.rs:243:5
|
243 | pub __opaque: [libc::c_char; 56usize],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i8; 56]`
|
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[i8; 56]`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[i8; 56]`
= note: required for the cast to the object type `dyn std::fmt::Debug`
error[E0277]: arrays only have std trait implementations for lengths 0..=32
--> /my-app/target/debug/build/librocksdb-sys-a3849244a8784e5d/out/bindings.rs:282:5
|
282 | pub __opaque: [libc::c_char; 40usize],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i8; 40]`
|
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[i8; 40]`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[i8; 40]`
= note: required for the cast to the object type `dyn std::fmt::Debug`
error[E0277]: arrays only have std trait implementations for lengths 0..=32
--> /my-app/target/debug/build/librocksdb-sys-a3849244a8784e5d/out/bindings.rs:364:5
|
364 | pub __opaque: [libc::c_char; 56usize],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i8; 56]`
|
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[i8; 56]`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[i8; 56]`
= note: required for the cast to the object type `dyn std::fmt::Debug`
error[E0277]: arrays only have std trait implementations for lengths 0..=32
--> /my-app/target/debug/build/librocksdb-sys-a3849244a8784e5d/out/bindings.rs:487:5
|
487 | pub __opaque: [libc::c_char; 192usize],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i8; 192]`
|
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[i8; 192]`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[i8; 192]`
= note: required for the cast to the object type `dyn std::fmt::Debug`
error[E0277]: arrays only have std trait implementations for lengths 0..=32
--> /my-app/target/debug/build/librocksdb-sys-a3849244a8784e5d/out/bindings.rs:572:5
|
572 | pub __opaque: [libc::c_char; 8176usize],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i8; 8176]`
|
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[i8; 8176]`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[i8; 8176]`
= note: required for the cast to the object type `dyn std::fmt::Debug`
error: aborting due to 5 previous errors
λλ λν nightlyλ‘ μλνμ§λ§ nightly 2019-09-20 λ° 2019-09-10μ λμ μ¬μ©νμ¬ λμΌν λ¬Έμ κ° λ°μνμ΅λλ€. λμ μ μ»΄νμΌλ©λλ€.
μ΄κ²μ΄ librocksdb-sys λ¬Έμ κ° μλλΌλ©΄ μ£μ‘ν©λλ€(μλ§λ bingen λ¬Έμ μΌ μ μμ). κ·Έλ¬λ μ λ λ Ήμ μ΄λ³΄μμ΄λ―λ‘ μ΄λ₯Ό νμΈνλ λ°©λ²μ 100% νμ ν μ μμ΅λλ€.
μλ
νμΈμ! λ¬Έμ λ₯Ό λ§λ€μ΄ μ£Όμ
μ κ°μ¬ν©λλ€. μ°λ¦¬λ μ΄ λ¬Έμ λ₯Ό μΈμ§νκ³ μμΌλ©° μ΄ λλ¬Έμ Travisμμ beta
μ±λμ κ°μ λ‘ λΉνμ±ννμ΅λλ€.
κ·Έλ¬λ λ΄κ° μ μν μ μλ μ μΌν ν΄κ²°μ±
μ stable
μ»΄νμΌλ¬λ‘ μ ννλ κ²μ
λλ€.
κ·Έ μ΄μ λ https://doc.rust-lang.org/nightly/src/core/array.rs.html#385 μ λ°λ₯΄λ©΄ μ΄ λ¬Έμ κ° μμ μ μΌλ‘ λνλμ§ μκΈ° λλ¬Έμ
λλ€.
[λΆμμ (κΈ°λ₯ = "const_generic_impls_guard", λ¬Έμ = "0",
reason = "will never be stable, just a temporary step until const generics are stable")]
@vitvakatu μ€
λΉμ μ΄ κ·Έκ²μ λν΄ ν μ μλ κ²μ΄ μ무κ²λ μκΈ° λλ¬Έμ μ΄ λ¬Έμ λ₯Ό λ«κ² μ΅λλ€.
MacOS Mojave, Xcode 11.1(λλ MacPortsκ° μκ³ brewκ° μλ)μμ λ² νμμ librocksdb-sysλ₯Ό λΉλν μ μμ΅λλ€(λΉλκΈ°/λκΈ° νλͺ©μ λν΄μλ λ² νκ° νμν¨).
μ΄ μ€λ₯κ° λ°μν©λλ€.
error[E0277]: arrays only have std trait implementations for lengths 0..=32
--> /Users/calin/src/ec/photon/target/release/build/librocksdb-sys-d77172d3d1e61d8b/out/bindings.rs:243:5
|
243 | pub __opaque: [libc::c_char; 56usize],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i8; 56]`
|
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[i8; 56]`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[i8; 56]`
= note: required for the cast to the object type `dyn std::fmt::Debug`
error[E0277]: arrays only have std trait implementations for lengths 0..=32
--> /Users/calin/src/ec/photon/target/release/build/librocksdb-sys-d77172d3d1e61d8b/out/bindings.rs:282:5
|
282 | pub __opaque: [libc::c_char; 40usize],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i8; 40]`
|
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[i8; 40]`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[i8; 40]`
= note: required for the cast to the object type `dyn std::fmt::Debug`
error[E0277]: arrays only have std trait implementations for lengths 0..=32
--> /Users/calin/src/ec/photon/target/release/build/librocksdb-sys-d77172d3d1e61d8b/out/bindings.rs:364:5
|
364 | pub __opaque: [libc::c_char; 56usize],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i8; 56]`
|
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[i8; 56]`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[i8; 56]`
= note: required for the cast to the object type `dyn std::fmt::Debug`
error[E0277]: arrays only have std trait implementations for lengths 0..=32
--> /Users/calin/src/ec/photon/target/release/build/librocksdb-sys-d77172d3d1e61d8b/out/bindings.rs:487:5
|
487 | pub __opaque: [libc::c_char; 192usize],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i8; 192]`
|
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[i8; 192]`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[i8; 192]`
= note: required for the cast to the object type `dyn std::fmt::Debug`
error[E0277]: arrays only have std trait implementations for lengths 0..=32
--> /Users/calin/src/ec/photon/target/release/build/librocksdb-sys-d77172d3d1e61d8b/out/bindings.rs:572:5
|
572 | pub __opaque: [libc::c_char; 8176usize],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i8; 8176]`
|
= note: required because of the requirements on the impl of `std::fmt::Debug` for `[i8; 8176]`
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&[i8; 8176]`
= note: required for the cast to the object type `dyn std::fmt::Debug`
error: aborting due to 5 previous errors
For more information about this error, try `rustc --explain E0277`.
μ‘°μΈ λΆνλ립λλ€?
@cculianu λ€. μλ €μ§ λ¬Έμ μ
λλ€. librocksdb-sys
from master
μ¬μ©ν΄ 보μΈμ.
μ κ² μ΄μ. κ·ΈλΌ ν¨κ³Όκ° μμκΉμ?
μ£μ‘ν©λλ€λ§: μ λ λ Ήμ¨ μΈκ³μ κ΄μ¬μ΄ μμ΅λλ€. μ λ λ§ κ·Έλλ‘ μ macos μμ€ν μμ μλνλλ‘ νκΈ° μν΄ μ λλ£κ° λ§λ νλ‘μ νΈλ₯Ό μ»΄νμΌνλ €κ³ ν©λλ€(κ·Έλ μλ² μΈ‘μμ μμ νκ³ μ λ μμ ν λ€λ₯Έ μΈμ΄λ‘ λ ν΄λΌμ΄μΈνΈ). λλ κ·Έμ μλ²κ° μ»΄νμΌλκΈ°λ₯Ό μνλ―λ‘ μ¬κΈ°μμ μ€νν μ μμ΅λλ€... Linux VMμ μ¬μ©νμ§ μκ³ λ(Linuxμμλ μλ²½νκ² μ»΄νμΌλ©λλ€).
λλ μ΄κ²μ ꡬκΈλ§ν μ μλ€λ κ²μ μκ³ μμ§λ§ κ·Έκ²μ κ²μ΄ λλ€. Rust μΈκ³λ λ§ κ·Έλλ‘ λμκ² λ§€μ° μλ‘λ€. μ λ C++ κ°λ°μμ
λλ€. :) λ§μ€ν°λ₯Ό μ¬μ©νκ³ μνλ ν¬λ μ΄νΈλ₯Ό λ€μ΄λ‘λνμ§ μλλ‘ λΉλ μ¬μμ μ»μΌλ €λ©΄ μ΄λ»κ² ν΄μΌ ν©λκΉ? λ΄κ° κ·Έμ νλ‘μ νΈμ λν μμ€ λλ ν 리μμ cargo build
λ₯Ό μ€ννλ©΄ ν¬λ μ΄νΈλ₯Ό λ€μ΄λ‘λνκ³ λΉλλ₯Ό μλν©λλ€. κ·Έκ²μ 무μν μ μμ΅λκΉ?
κ·Έμκ² λ¬Όμ΄λ΄μΌ ν μ§λ.. :)
λλ κ·Έκ²μ μμ λλ€κ³ μκ°νλ€ - λλ κ·Έμ 0.12.4κ° μλ λΉμ μ μ μ₯μμ λν κ·Έμ rockdb μμ‘΄μ±μ κ°λ¦¬ν€κ³ μλ€.
μ§κΈ 곡μ¬μ€...
ZOMG μ»΄νμΌνμ΅λλ€! λ΅μ₯μ 보λ΄μ£Όμ μ κ°μ¬ν©λλ€. λ§ κ·Έλλ‘ λ¬΄μμ ν΄μΌν μ§ μ ν λͺ°λμ΅λλ€. κ°μ¬ ν΄μ.
κ°μ₯ μ μ©ν λκΈ
ZOMG μ»΄νμΌνμ΅λλ€! λ΅μ₯μ 보λ΄μ£Όμ μ κ°μ¬ν©λλ€. λ§ κ·Έλλ‘ λ¬΄μμ ν΄μΌν μ§ μ ν λͺ°λμ΅λλ€. κ°μ¬ ν΄μ.