https://opendal.apache.org/ logo
gdrive under wasm
# general
y
just make a few changes on services-gdrive and it compiles well (much easier than I thought), I'd like to file a PR if you think it's a right time now to make others services compile under wasm.
Copy code
txt
cargo build --target wasm32-unknown-unknown --no-default-features --features=services-s3 --features=services-gdrive
    Blocking waiting for file lock on build directory
   Compiling opendal v0.43.0 (/home/flash/projects/opendal/core)
warning: variable does not need to be mutable
  --> core/src/raw/http_util/client.rs:81:18
   |
81 |     pub fn build(mut builder: reqwest::ClientBuilder) -> Result<Self> {
   |                  ----^^^^^^^
   |                  |
   |                  help: remove this `mut`
   |
   = note: `#[warn(unused_mut)]` on by default

warning: constant `DEFAULT_CONNECT_TIMEOUT` is never used
  --> core/src/raw/http_util/client.rs:36:7
   |
36 | const DEFAULT_CONNECT_TIMEOUT: Duration = Duration::from_secs(60);
   |       ^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: missing documentation for a type alias
  --> core/src/raw/futures_util.rs:31:1
   |
31 | pub type BoxedFuture<T> = futures::future::LocalBoxFuture<'static, T>;
   | ^^^^^^^^^^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> core/src/lib.rs:64:9
   |
64 | #![warn(missing_docs)]
   |         ^^^^^^^^^^^^

warning: `opendal` (lib) generated 3 warnings (run `cargo fix --lib -p opendal` to apply 1 suggestion)
    Finished dev [unoptimized + debuginfo] target(s) in 6.65s
x
g
How about after this PR?
y
sure