mbx 1.24.1

A build cache for Rust projects
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::cargo_tests::managed_target_config;
use super::*;

#[test]
fn prefetch_accepts_a_read_capable_remote() {
    let directory = tempfile::tempdir().unwrap();
    let mut config = managed_target_config(directory.path());
    config.remote.url = Some("https://cache.example.test".into());
    config.remote.mode = mbx_cache_core::RemoteCacheMode::ReadOnly;

    assert!(validate_prefetch_config(&config).is_ok());
}