pub fn find_platform_library(dir: &Path) -> Option<PathBuf>Expand description
Recursively search dir (and its sub-directories) for the loadable library
that best matches the current platform, returning its full path. Returns
None if no candidate with a loadable extension for this OS is found.
Candidates are ranked by: loadable extension for this OS (required) →
filename contains cronet → architecture match → OS match, with guards so a
64-bit host never prefers a 32-bit artifact (or vice-versa). Ties break by
full path for deterministic selection.
The walk is bounded to [MAX_SEARCH_DEPTH] levels and does not follow
directory symlinks, so it terminates on cyclic or pathological trees.