trim21 opened a new issue, #8586:
URL: https://github.com/apache/opendal/issues/8586

   ## Background
   
   `bindings/python/Cargo.toml` still declares `services-sftp`, and the 
generated typing surface still ships `opendal.config.SftpConfig` and 
`Scheme.Sftp`. Neither corresponds to a working backend in any published wheel:
   
   - The published `opendal==0.47.12` Linux x86-64 wheel exports `SftpConfig` 
from `opendal.config` and lists `Sftp: Final[Scheme]` in `services.pyi`, but 
`Scheme.Sftp` does not exist at runtime.
   - `services-all`, the feature set PyPI wheels build with, has never enabled 
`services-sftp`. The `[target.'cfg(not(windows))'.features]` section that was 
meant to add it is not a valid cargo key 
([rust-lang/cargo#1197](https://github.com/rust-lang/cargo/issues/1197)); cargo 
ignores it with `unused manifest key: target.cfg(not(windows)).features`.
   - The sftp backend was only compiled into unix wheels between #4006 (Jan 
2024) and #6412 (Jul 2025), and even then only the string constructor could 
reach it. #6412 removed it because openssh's `concurrent_arena` 0.1.11 fails to 
build on armv7l; the fix in 0.1.12 requires Rust 1.95, above the workspace MSRV 
(1.91).
   
   ## Proposal
   
   Remove sftp from the Python binding:
   
   - Drop `services-sftp` from `bindings/python/Cargo.toml`, together with the 
ineffective `[target.'cfg(not(windows))'.features]` table.
   - Regenerate `bindings/python/src/services.rs`, 
`bindings/python/python/opendal/config.py`, and 
`bindings/python/python/opendal/services.pyi` so `Scheme.Sftp` and `SftpConfig` 
disappear.
   
   Re-adding sftp can be a follow-up once #7968 (port the SFTP transport from 
openssh to russh) lands, or once cargo supports platform-conditional features 
for a crate's own feature sets under the workspace MSRV.
   


-- 
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