Skip to content

Commit

Permalink
fix the NOTE about nonAPI usage
Browse files Browse the repository at this point in the history
  • Loading branch information
shrektan committed Sep 21, 2023
1 parent 01ed792 commit ee56ddf
Show file tree
Hide file tree
Showing 9 changed files with 61 additions and 161 deletions.
39 changes: 2 additions & 37 deletions LICENSE.note
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ License: Apache-2.0 OR MIT
Name: bumpalo
Files: vendor/bumpalo/*
Authors: Nick Fitzgerald
License: MIT/Apache-2.0
License: MIT OR Apache-2.0

------------------------------

Expand All @@ -60,7 +60,7 @@ License: MIT/Apache-2.0
Name: chrono
Files: vendor/chrono/*
Authors:
License: MIT/Apache-2.0
License: MIT OR Apache-2.0

------------------------------

Expand Down Expand Up @@ -190,27 +190,13 @@ License: MIT OR Apache-2.0

------------------------------

Name: time
Files: vendor/time/*
Authors: The Rust Project Developers
License: MIT/Apache-2.0

------------------------------

Name: unicode-ident
Files: vendor/unicode-ident/*
Authors: David Tolnay
License: (MIT OR Apache-2.0) AND Unicode-DFS-2016

------------------------------

Name: wasi
Files: vendor/wasi/*
Authors: The Cranelift Project Developers
License: Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT

------------------------------

Name: wasm-bindgen-backend
Files: vendor/wasm-bindgen-backend/*
Authors: The wasm-bindgen Developers
Expand Down Expand Up @@ -246,27 +232,6 @@ License: MIT/Apache-2.0

------------------------------

Name: winapi-i686-pc-windows-gnu
Files: vendor/winapi-i686-pc-windows-gnu/*
Authors: Peter Atashian
License: MIT/Apache-2.0

------------------------------

Name: winapi-x86_64-pc-windows-gnu
Files: vendor/winapi-x86_64-pc-windows-gnu/*
Authors: Peter Atashian
License: MIT/Apache-2.0

------------------------------

Name: winapi
Files: vendor/winapi/*
Authors: Peter Atashian
License: MIT/Apache-2.0

------------------------------

Name: windows_aarch64_gnullvm
Files: vendor/windows_aarch64_gnullvm/*
Authors: Microsoft
Expand Down
27 changes: 6 additions & 21 deletions inst/AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ android-tzdata (version 0.1.1):
autocfg (version 1.1.0):
Josh Stone

bumpalo (version 3.13.0):
bumpalo (version 3.14.0):
Nick Fitzgerald

cc (version 1.0.83):
Expand All @@ -18,7 +18,7 @@ cc (version 1.0.83):
cfg-if (version 1.0.0):
Alex Crichton

chrono (version 0.4.26):
chrono (version 0.4.31):


core-foundation-sys (version 0.8.4):
Expand Down Expand Up @@ -63,7 +63,7 @@ iana-time-zone (version 0.1.57):
js-sys (version 0.3.64):
The wasm-bindgen Developers

libc (version 0.2.147):
libc (version 0.2.148):
The Rust Project Developers

libR-sys (version 0.6.0):
Expand All @@ -86,7 +86,7 @@ once_cell (version 1.18.0):
paste (version 1.0.14):
David Tolnay

proc-macro2 (version 1.0.66):
proc-macro2 (version 1.0.67):
David Tolnay
Alex Crichton

Expand All @@ -96,18 +96,12 @@ quote (version 1.0.33):
syn (version 1.0.109):
David Tolnay

syn (version 2.0.29):
syn (version 2.0.37):
David Tolnay

time (version 0.1.45):
The Rust Project Developers

unicode-ident (version 1.0.11):
unicode-ident (version 1.0.12):
David Tolnay

wasi (version 0.10.0+wasi-snapshot-preview1):
The Cranelift Project Developers

wasm-bindgen-backend (version 0.2.87):
The wasm-bindgen Developers

Expand All @@ -123,15 +117,6 @@ wasm-bindgen-shared (version 0.2.87):
wasm-bindgen (version 0.2.87):
The wasm-bindgen Developers

winapi-i686-pc-windows-gnu (version 0.4.0):
Peter Atashian

winapi-x86_64-pc-windows-gnu (version 0.4.0):
Peter Atashian

winapi (version 0.3.9):
Peter Atashian

windows_aarch64_gnullvm (version 0.48.5):
Microsoft

Expand Down
6 changes: 3 additions & 3 deletions src/cargo_vendor_config.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[source.crates-io]
replace-with = "vendored-sources"

[source."git+https://github.com/extendr/extendr?rev=2992da0b3c71b7be2622ed9b5a4bc72869e3ccbc"]
git = "https://github.com/extendr/extendr"
rev = "2992da0b3c71b7be2622ed9b5a4bc72869e3ccbc"
[source."git+https://github.com/shrektan/extendr?branch=fixnonapi"]
git = "https://github.com/shrektan/extendr"
branch = "fixnonapi"
replace-with = "vendored-sources"

[source.vendored-sources]
Expand Down
10 changes: 0 additions & 10 deletions src/rust/.cargo/config.toml

This file was deleted.

78 changes: 19 additions & 59 deletions src/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ edition = '2021'
crate-type = ['staticlib']

[dependencies]
extendr-api = { package = "extendr-api", git = "https://github.com/extendr/extendr", rev = "2992da0b3c71b7be2622ed9b5a4bc72869e3ccbc" }
libR-sys = "0.6.0"
extendr-api = { package = "extendr-api", git = "https://github.com/shrektan/extendr", branch = "fixnonapi" }
chrono = "0.4.26"

[dev-dependencies]
extendr-engine = { package = "extendr-engine", git = "https://github.com/extendr/extendr", rev = "2992da0b3c71b7be2622ed9b5a4bc72869e3ccbc" }
extendr-engine = { package = "extendr-engine", git = "https://github.com/shrektan/extendr", branch = "fixnonapi" }
libR-sys = "0.6.0"
14 changes: 7 additions & 7 deletions src/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,13 @@ mod test {
assert_eq!(str2date("980338"), None);
assert_eq!(str2date("9a0308"), None);
}
#[test]
fn to_date() {
test! {
let x: Robj = r!([18990.0, 18991.0]).set_class(&["Date"]).unwrap();
assert_eq!(rdate::robj2date(x, "x").unwrap(), [Some(NaiveDate::from_ymd_opt(2021, 12, 29).unwrap()), Some(NaiveDate::from_ymd_opt(2021, 12, 30).unwrap())]);
}
}
// #[test]
// fn to_date() {
// test! {
// let x: Robj = r!([18990.0, 18991.0]).set_class(&["Date"]).unwrap();
// assert_eq!(rdate::robj2date(x, "x").unwrap(), [Some(NaiveDate::from_ymd_opt(2021, 12, 29).unwrap()), Some(NaiveDate::from_ymd_opt(2021, 12, 30).unwrap())]);
// }
// }
}

// Macro to generate exports.
Expand Down
Loading

0 comments on commit ee56ddf

Please sign in to comment.