Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-1490

Driver does not compile with csfle flag enabled

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.4.0
    • Affects Version/s: None
    • Component/s: None

      When the csfle feature is enabled, attempting to compile the driver produces the following error on Rust 1.57:

      error[E0658]: use of unstable library feature 'available_parallelism'
        --> src/client/csfle/state_machine.rs:43:24
         |
      43 |         let num_cpus = std::thread::available_parallelism()?.get();
         |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         |
         = note: see issue #74479 <https://github.com/rust-lang/rust/issues/74479> for more information

      And on all Rust versions produces:

       

      error[E0599]: no method named `to_binary` found for struct `RawBinaryRef` in the current scope
        --> src/client/csfle/client_encryption.rs:74:20
         |
      74 |         Ok(bin_ref.to_binary())
         |                    ^^^^^^^^^ method not found in `RawBinaryRef<'_>`
      error[E0599]: no method named `to_binary` found for struct `RawBinaryRef` in the current scope
         --> src/client/csfle/client_encryption.rs:189:20
          |
      189 |         Ok(bin_ref.to_binary())
          |                    ^^^^^^^^^ method not found in `RawBinaryRef<'_>`
      

       

            Assignee:
            abraham.egnor@mongodb.com Abraham Egnor
            Reporter:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: