pub fn build_and_find_binary(package: &str) -> Result<PathBuf>Expand description
Build a cargo binary package and return its output path.
Runs from the ktstr crate’s manifest directory (which is also the workspace root in this repo) so that workspace-level feature unification (e.g. vendored libbpf-sys) is always in effect, regardless of the calling process’s working directory.
The scheduler-under-test is built with the RELEASE profile by
DEFAULT: a debug sched_ext scheduler is far slower and its BPF
verifier instruction counts differ, so it is never the intended thing
to test. KTSTR_SCHEDULER_PROFILE_ENV overrides the profile name
(set by cargo ktstr <cmd> --profile <NAME>); an unset / empty value
keeps the release default. The build passes cargo build --profile <name> verbatim (dev = the default profile, release == --release,
any custom [profile.<name>]), so the returned artifact path resolves
under the matching target/<dir>/.