Skip to content

Commit

Permalink
add flag that fixes R wrapper function on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Feb 12, 2024
1 parent 42bc38b commit ebfd551
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 7 deletions.
2 changes: 1 addition & 1 deletion r/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ SystemRequirements: Rust tool chain w/ cargo, libclang/llvm-config
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
Suggests:
rmarkdown,
testthat
Expand Down
19 changes: 19 additions & 0 deletions r/man/curiesr-package.Rd

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

2 changes: 1 addition & 1 deletion r/src/Makevars
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
TARGET_DIR = ./rust/target
LIBDIR = $(TARGET_DIR)/release
STATLIB = $(LIBDIR)/libcuriesr.a
PKG_LIBS = -L$(LIBDIR) -lcuriesr
PKG_LIBS = -L$(LIBDIR) -lcuriesr -lssl

all: C_clean

Expand Down
2 changes: 1 addition & 1 deletion r/src/Makevars.win
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ TARGET = $(subst 64,x86_64,$(subst 32,i686,$(WIN)))-pc-windows-gnu
TARGET_DIR = ./rust/target
LIBDIR = $(TARGET_DIR)/$(TARGET)/release
STATLIB = $(LIBDIR)/libcuriesr.a
PKG_LIBS = -L$(LIBDIR) -lcuriesr -lws2_32 -ladvapi32 -luserenv -lbcrypt -lntdll
PKG_LIBS = -L$(LIBDIR) -lcuriesr -lws2_32 -ladvapi32 -luserenv -lbcrypt -lntdll -lCrypt32 -lSecur32

all: C_clean

Expand Down
3 changes: 2 additions & 1 deletion r/src/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ crate-type = [ 'staticlib' ]
name = 'curiesr'

[dependencies]
extendr-api = '*'
# extendr-api = '*'
extendr-api = '0.6.0'
curies = { version = "0.1.1", path = "../../../lib" }
tokio = { version = "1.34", features = ["rt-multi-thread"] }
3 changes: 0 additions & 3 deletions r/src/rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
use std::collections::HashSet;

use curies::Record;
use extendr_api::prelude::*;

use ::curies::{sources::get_bioregistry_converter, Converter};
Expand Down

0 comments on commit ebfd551

Please sign in to comment.