You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "STRRL (via GitHub)" <gi...@apache.org> on 2025/12/16 05:41:27 UTC

[PR] refactor(services/opfs): split opfs service into separate crate [opendal]

STRRL opened a new pull request, #7021:
URL: https://github.com/apache/opendal/pull/7021

   ## Summary
   - Extract `core/src/services/opfs` into a new crate `core/services/opfs`, crate name `opendal-service-opfs`
   - Keep the public surface (`opendal::services::Opfs`) unchanged
   - Preserve the existing feature flag: `services-opfs`
   
   ## Changes
   - Created new `opendal-service-opfs` crate at `core/services/opfs/`
   - Moved all opfs source code to the new crate with updated imports
   - Updated `core/Cargo.toml` to use the new crate as optional dependency
   - Removed opfs feature and wasm dependencies from `core/core/Cargo.toml`
   - Added facade re-export in `core/src/lib.rs`
   
   ## Test plan
   - [x] `cargo check` passes
   - [x] `cargo check -p opendal-service-opfs --target wasm32-unknown-unknown` passes
   - [x] `cargo fmt --check` passes
   
   Closes #6829
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] refactor(services/opfs): split opfs service into separate crate [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo merged PR #7021:
URL: https://github.com/apache/opendal/pull/7021


-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] refactor(services/opfs): split opfs service into separate crate [opendal]

Posted by "STRRL (via GitHub)" <gi...@apache.org>.
STRRL commented on PR #7021:
URL: https://github.com/apache/opendal/pull/7021#issuecomment-3663176691

   Updated, PTAL @Xuanwo 
   
   current changes in `Cargo.toml` is ugly, any suggestions?


-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] refactor(services/opfs): split opfs service into separate crate [opendal]

Posted by "STRRL (via GitHub)" <gi...@apache.org>.
STRRL commented on code in PR #7021:
URL: https://github.com/apache/opendal/pull/7021#discussion_r2625209663


##########
core/src/lib.rs:
##########
@@ -57,6 +57,8 @@ pub mod services {
     pub use opendal_service_mysql::*;
     #[cfg(feature = "services-obs")]
     pub use opendal_service_obs::*;
+    #[cfg(feature = "services-opfs")]

Review Comment:
   oh wait CI failed after I update it, let me take a look.



-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] refactor(services/opfs): split opfs service into separate crate [opendal]

Posted by "STRRL (via GitHub)" <gi...@apache.org>.
STRRL commented on code in PR #7021:
URL: https://github.com/apache/opendal/pull/7021#discussion_r2625208658


##########
core/src/lib.rs:
##########
@@ -57,6 +57,8 @@ pub mod services {
     pub use opendal_service_mysql::*;
     #[cfg(feature = "services-obs")]
     pub use opendal_service_obs::*;
+    #[cfg(feature = "services-opfs")]

Review Comment:
   Updated PTAL again :heart: @Xuanwo 



-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] refactor(services/opfs): split opfs service into separate crate [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on code in PR #7021:
URL: https://github.com/apache/opendal/pull/7021#discussion_r2622182300


##########
core/src/lib.rs:
##########
@@ -57,6 +57,8 @@ pub mod services {
     pub use opendal_service_mysql::*;
     #[cfg(feature = "services-obs")]
     pub use opendal_service_obs::*;
+    #[cfg(feature = "services-opfs")]

Review Comment:
   opfs is only available under wasm32, we need to add flags here.



-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] refactor(services/opfs): split opfs service into separate crate [opendal]

Posted by "STRRL (via GitHub)" <gi...@apache.org>.
STRRL commented on code in PR #7021:
URL: https://github.com/apache/opendal/pull/7021#discussion_r2625185427


##########
core/src/lib.rs:
##########
@@ -57,6 +57,8 @@ pub mod services {
     pub use opendal_service_mysql::*;
     #[cfg(feature = "services-obs")]
     pub use opendal_service_obs::*;
+    #[cfg(feature = "services-opfs")]

Review Comment:
   sure I found it 
   
   ```
   #[cfg(all(target_arch = "wasm32", feature = "services-opfs"))]
   mod opfs;
   ```



-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] refactor(services/opfs): split opfs service into separate crate [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on PR #7021:
URL: https://github.com/apache/opendal/pull/7021#issuecomment-3663517023

   > current changes in `Cargo.toml` is ugly, any suggestions?
   
   I think that's the cost we need to pay 🤣 


-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org