Skip to content

Commit

Permalink
feat: Allows for extenal use of library crate
Browse files Browse the repository at this point in the history
  • Loading branch information
andyquinterom committed Jul 5, 2024
1 parent 735d190 commit 4b9cdb3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 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)/liborbweaver.a
PKG_LIBS = -L$(LIBDIR) -lorbweaver
PKG_LIBS = -L$(LIBDIR) -lorbweaver_r

all: C_clean

Expand Down
2 changes: 1 addition & 1 deletion 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)/liborbweaver.a
PKG_LIBS = -L$(LIBDIR) -lorbweaver -lws2_32 -ladvapi32 -luserenv -lbcrypt -lntdll
PKG_LIBS = -L$(LIBDIR) -lorbweaver_r -lws2_32 -ladvapi32 -luserenv -lbcrypt -lntdll

all: C_clean

Expand Down
4 changes: 2 additions & 2 deletions src/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ version = '0.13.0'
edition = '2021'

[lib]
crate-type = [ 'staticlib' ]
name = 'orbweaver'
crate-type = [ 'staticlib', 'lib' ]
name = 'orbweaver_r'

[dependencies]
extendr-api = { version = "0.7", features = ["serde"] }
Expand Down

0 comments on commit 4b9cdb3

Please sign in to comment.