kevinjqliu commented on code in PR #724:
URL: 
https://github.com/apache/arrow-rs-object-store/pull/724#discussion_r3391252684


##########
Cargo.toml:
##########
@@ -82,12 +82,18 @@ futures-channel = {version = "0.3", features = ["sink"]}
 
 [features]
 default = ["fs"]
-cloud = ["serde", "serde_json", "quick-xml", "hyper", "reqwest", 
"reqwest/stream", "chrono/serde", "base64", "rand", "ring", "http-body-util", 
"form_urlencoded", "serde_urlencoded", "tokio"]
-azure = ["cloud", "httparse"]
+cloud = ["cloud-base", "reqwest"]

Review Comment:
   i actually like `-base` more 😄  This is my mental model:
   ```
   cloud-base = shared cloud code
   *-base     = provider-specific code without default reqwest
   reqwest    = built-in HTTP transport
   cloud      = compatibility alias for cloud-base + reqwest
   aws/azure/gcp/http = provider base + reqwest
   ```
   
   ```
   # Shared cloud/provider implementation dependencies.
   # This intentionally does NOT include reqwest.
   cloud-base = [
     "serde",
     "serde_json",
     "quick-xml",
     "hyper",
     "chrono/serde",
     "base64",
     "rand",
     "ring",
     "http-body-util",
     "form_urlencoded",
     "serde_urlencoded",
     "tokio",
   ]
   
   # Built-in reqwest-based HTTP transport.
   reqwest = [
     "dep:reqwest",
     "reqwest/stream",
   ]
   
   # Compatibility/convenience alias.
   # Historically, cloud meant "common cloud support", including reqwest.
   # Keep that behavior for existing users.
   cloud = [
     "cloud-base",
     "reqwest",
   ]
   
   # Provider base features.
   # These compile provider logic without forcing reqwest.
   azure-base = [
     "cloud-base",
     "httparse",
   ]
   
   gcp-base = [
     "cloud-base",
     "rustls-pki-types",
   ]
   
   aws-base = [
     "cloud-base",
     "crc-fast",
     "md-5",
   ]
   
   http-base = [
     "cloud-base",
   ]
   
   # Batteries-included provider features.
   # These preserve existing behavior: enabling aws/azure/gcp/http gives
   # the default reqwest transport.
   azure = [
     "azure-base",
     "reqwest",
   ]
   
   gcp = [
     "gcp-base",
     "reqwest",
   ]
   
   aws = [
     "aws-base",
     "reqwest",
   ]
   
   http = [
     "http-base",
     "reqwest",
   ]
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to