Open rchaser53 opened 5 years ago
cargo install rustup-toolchain-install-master failed The error message is Could not compile `security-framework`
cargo install rustup-toolchain-install-master
Could not compile `security-framework`
rustc version
rustc 1.34.0-nightly (f66e4697a 2019-02-20) binary: rustc commit-hash: f66e4697ae286985ddefc53c3a047614568458bb commit-date: 2019-02-20 host: x86_64-apple-darwin release: 1.34.0-nightly LLVM version: 8.0
cargo version
cargo 1.34.0-nightly (865cb7010 2019-02-10) release: 1.34.0 commit-hash: 865cb70106a6b1171a500ff68f93ab52eea56e72 commit-date: 2019-02-10
I can build from source and use it in mac. So it's not a serious problem.
cargo install rustup-toolchain-install-master
failed The error message isCould not compile `security-framework`
rustc version
cargo version
error detail
error[E0308]: mismatched types --> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/base.rs:49:55 | 49 | Some(CFString::wrap_under_create_rule(s).to_string()) | ^ expected struct `core_foundation::string::__CFString`, found struct `core_foundation_sys::string::__CFString` | = note: expected type `*const core_foundation::string::__CFString` found type `*const core_foundation_sys::string::__CFString` note: Perhaps two different versions of crate `core_foundation_sys` are being used? --> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/base.rs:49:55 | 49 | Some(CFString::wrap_under_create_rule(s).to_string()) | ^ Compiling phf_generator v0.7.24 error[E0308]: mismatched types --> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/certificate.rs:36:67 | 36 | SecCertificateCreateWithData(kCFAllocatorDefault, der_data.as_concrete_TypeRef()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `core_foundation_sys::data::__CFData`, found struct `core_foundation::data::__CFData` | = note: expected type `*const core_foundation_sys::data::__CFData` found type `*const core_foundation::data::__CFData` note: Perhaps two different versions of crate `core_foundation_sys` are being used? --> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/certificate.rs:36:67 | 36 | SecCertificateCreateWithData(kCFAllocatorDefault, der_data.as_concrete_TypeRef()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0308]: mismatched types --> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/certificate.rs:49:44 | 49 | CFData::wrap_under_create_rule(der_data).to_vec() | ^^^^^^^^ expected struct `core_foundation::data::__CFData`, found struct `core_foundation_sys::data::__CFData` | = note: expected type `*const core_foundation::data::__CFData` found type `*const core_foundation_sys::data::__CFData` note: Perhaps two different versions of crate `core_foundation_sys` are being used? --> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/certificate.rs:49:44 | 49 | CFData::wrap_under_create_rule(der_data).to_vec() | ^^^^^^^^ error[E0308]: mismatched types --> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/certificate.rs:57:46 | 57 | CFString::wrap_under_create_rule(summary).to_string() | ^^^^^^^ expected struct `core_foundation::string::__CFString`, found struct `core_foundation_sys::string::__CFString` | = note: expected type `*const core_foundation::string::__CFString` found type `*const core_foundation_sys::string::__CFString` note: Perhaps two different versions of crate `core_foundation_sys` are being used? --> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/certificate.rs:57:46 | 57 | CFString::wrap_under_create_rule(summary).to_string() | ^^^^^^^ error[E0308]: mismatched types --> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:100:51 | 100 | CFString::wrap_under_get_rule(kSecImportExportPassphrase), | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `core_foundation::string::__CFString`, found struct `core_foundation_sys::string::__CFString` | = note: expected type `*const core_foundation::string::__CFString` found type `*const core_foundation_sys::string::__CFString` note: Perhaps two different versions of crate `core_foundation_sys` are being used? --> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:100:51 | 100 | CFString::wrap_under_get_rule(kSecImportExportPassphrase), | ^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0308]: mismatched types --> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:111:17 | 111 | pkcs12_data.as_concrete_TypeRef(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `core_foundation_sys::data::__CFData`, found struct `core_foundation::data::__CFData` | = note: expected type `*const core_foundation_sys::data::__CFData` found type `*const core_foundation::data::__CFData` note: Perhaps two different versions of crate `core_foundation_sys` are being used? --> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:111:17 | 111 | pkcs12_data.as_concrete_TypeRef(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0308]: mismatched types --> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:112:17 | 112 | options.as_concrete_TypeRef(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `core_foundation_sys::dictionary::__CFDictionary`, found struct `core_foundation::dictionary::__CFDictionary` | = note: expected type `*const core_foundation_sys::dictionary::__CFDictionary` found type `*const core_foundation::dictionary::__CFDictionary` note: Perhaps two different versions of crate `core_foundation_sys` are being used? --> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:112:17 | 112 | options.as_concrete_TypeRef(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0308]: mismatched types --> /Users/rchaser53/.cargo/registry/src/github.com-1ecc6299db9ec823/security-framework-0.2.2/src/import_export.rs:115:77 | 115 | let raw_items = CFArray::