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

   # Which issue does this PR close?
   
   Refs #5722 (Dart documentation). Package publication remains a separate item 
on the tracker.
   
   # Rationale for this change
   
   A Dart application can resolve OpenDAL as a `path` dependency and still fail 
at `Storage.init()`. The loader looks for the native library relative to the 
application's working directory. The previous setup instructions ended after 
building the library in the OpenDAL checkout.
   
   # What changes are included in this PR?
   
   The getting-started guide walks from cloning the repository to running the 
checked-in example. The example uses `package:opendal/opendal.dart` so its 
import also works in a consuming application. The website links to the README 
installation section, which gives a `pubspec.yaml` example and shows where to 
copy the library for default and target-specific builds.
   
   # Are there any user-facing changes?
   
   Readers can run the example from the checkout or use the binding from a 
separate Dart app. On Linux x86_64 with Dart 3.9.2, the external app reproduced 
the missing-library error and then completed file and directory operations with 
`libopendal_dart.so` in `rust/target/release/`. It also ran with the library 
present only in `rust/target/x86_64-unknown-linux-gnu/release/`. Runtime 
verification covered Linux x86_64.
   
   # Breaking changes
   
   # AI Usage Statement
   
   - pi, Sol (xhigh) updated the guides and example and tested the external 
Dart app.
   - pi, Astra (high) coordinated the work, clarified library placement in the 
README, and verified the Linux target-specific path.
   - pi, SWE-2 (high) independently reviewed the initial candidate.
   - pi, Gemini (high) reviewed the final README changes and drafted the PR 
description.
   


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