Skip to content

Commit 66feb3f

Browse files
authored
Release revdeprun 2.0.0 (#123)
* Run cargo fmt * Run cargo update * Increment version number to 2.0.0
1 parent e76fdc4 commit 66feb3f

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

Cargo.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "revdeprun"
3-
version = "1.4.5"
3+
version = "2.0.0"
44
edition = "2024"
55
description = "Easy reverse dependency checks for R with cloud-ready environment setup"
66
license = "MIT"

src/revdep.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ use crate::{
1515
};
1616

1717
const PKGDEPENDS_PATCH_FILENAME: &str = "patch-pkgdepends.R";
18-
const PKGDEPENDS_PATCH: &str =
19-
include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/assets/patch-pkgdepends.R"));
18+
const PKGDEPENDS_PATCH: &str = include_str!(concat!(
19+
env!("CARGO_MANIFEST_DIR"),
20+
"/assets/patch-pkgdepends.R"
21+
));
2022

2123
/// Ensures a checkout of the target repository exists within the configured
2224
/// workspace clone root.
@@ -743,8 +745,8 @@ mod tests {
743745
fn build_install_script_uses_binary_repo() {
744746
let path = Path::new("/tmp/example");
745747
let patch_path = Path::new("/tmp/patch-pkgdepends.R");
746-
let script = build_revdep_install_script(path, 8, "noble", patch_path)
747-
.expect("script must build");
748+
let script =
749+
build_revdep_install_script(path, 8, "noble", patch_path).expect("script must build");
748750
assert!(script.contains("https://packagemanager.posit.co/cran/__linux__/%s/latest"));
749751
assert!(script.contains(
750752
"sprintf(\"https://packagemanager.posit.co/cran/__linux__/%s/latest\", 'noble')"
@@ -787,8 +789,7 @@ mod tests {
787789
fn build_run_script_invokes_xfun() {
788790
let path = Path::new("/tmp/example");
789791
let patch_path = Path::new("/tmp/patch-pkgdepends.R");
790-
let script =
791-
build_revdep_run_script(path, 8, patch_path).expect("script must build");
792+
let script = build_revdep_run_script(path, 8, patch_path).expect("script must build");
792793

793794
assert!(script.contains("xfun::rev_check"));
794795
assert!(script.contains("src = \".\""));

0 commit comments

Comments
 (0)