pub fn places_api_new(db_name: impl AsRef<Path>) -> ApiResult<Arc<PlacesApi>>
Expand description
For uniffi we need to expose our Arc
returning constructor as a global function :(
https://github.com/mozilla/uniffi-rs/pull/1063 would fix this, but got some pushback
meaning we are forced into this unfortunate workaround.