Skip to content

Commit 13219b9

Browse files
authored
Merge pull request #14 from oxfordcontrol/cran-fixes
CRAN fixes
2 parents 593dbda + ab836a2 commit 13219b9

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: clarabel
22
Type: Package
33
Title: Interior Point Conic Optimization Solver
4-
Version: 0.9.0
4+
Version: 0.9.0.1
55
Authors@R: c(person("Balasubramanian", "Narasimhan", role=c("aut", "cre"),
66
email = "naras@stanford.edu"),
77
person("Paul", "Goulart", role=c("aut", "cph")),
@@ -10,7 +10,7 @@ Authors@R: c(person("Balasubramanian", "Narasimhan", role=c("aut", "cre"),
1010
comment = "For vendoring/Makefile hints/R scripts for generating crate authors/licenses"),
1111
person(given = "The authors of the dependency Rust crates", role = c("ctb"),
1212
comment = "see inst/AUTHORS file for details"))
13-
Description: A versatile interior point solver that solves linear programs (LPs), quadratic programs (QPs), second-order cone programs (SOCPs), semidefinite programs (SDPs), and problems with exponential and power cone constraints (<https://clarabel.org/stable/>). For quadratic objectives, unlike interior point solvers based on the standard homogeneous self-dual embedding (HSDE) model, 'Clarabel' handles quadratic objective without requiring any epigraphical reformulation of its objective function. It can therefore be significantly faster than other HSDE-based solvers for problems with quadratic objective functions. Infeasible problems are detected using using a homogeneous embedding technique.
13+
Description: A versatile interior point solver that solves linear programs (LPs), quadratic programs (QPs), second-order cone programs (SOCPs), semidefinite programs (SDPs), and problems with exponential and power cone constraints (<https://clarabel.org/stable/>). For quadratic objectives, unlike interior point solvers based on the standard homogeneous self-dual embedding (HSDE) model, Clarabel handles quadratic objective without requiring any epigraphical reformulation of its objective function. It can therefore be significantly faster than other HSDE-based solvers for problems with quadratic objective functions. Infeasible problems are detected using using a homogeneous embedding technique.
1414
License: Apache License (== 2.0)
1515
Encoding: UTF-8
1616
Roxygen: list(markdown = TRUE)
@@ -24,6 +24,6 @@ Suggests:
2424
rmarkdown,
2525
tinytest
2626
VignetteBuilder: knitr
27-
SystemRequirements: Cargo (Rust package manager), rustc and GNU Make
27+
SystemRequirements: Cargo (Rust's package manager), rustc (>= 1.67.1), and GNU Make
2828
Imports:
2929
methods

src/Makevars.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ STATLIB = $(LIBDIR)/libclarabel.a
1212
PKG_LIBS = -L$(LIBDIR) -lclarabel $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
1313

1414
CARGOTMP = $(CURDIR)/rust/.cargo
15-
CARGO_BUILD_ARGS = --jobs 2 --verbose --lib --manifest-path=./rust/Cargo.toml --target-dir $(TARGET_DIR)
15+
CARGO_BUILD_ARGS = -j 2 --lib --manifest-path=./rust/Cargo.toml --target-dir $(TARGET_DIR)
1616

1717
all: C_clean
1818

@@ -23,6 +23,8 @@ $(STATLIB):
2323
# to set it here to ensure cargo can be invoked. It is appended to PATH and
2424
# therefore is only used if cargo is absent from the user's PATH.
2525
export PATH="$(PATH):$(HOME)/.cargo/bin" && \
26+
echo "Rust version:" `rustc --version` && \
27+
echo "Cargo version:" `cargo --version` && \
2628
if [ "$(TARGET)" != "wasm32-unknown-emscripten" ]; then \
2729
if [ "$(VENDORING)" = "yes" ]; then \
2830
mkdir -p $(CARGOTMP); \

src/Makevars.win

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ $(STATLIB):
2727
mkdir -p $(LIBDIR)/libgcc_mock && touch $(LIBDIR)/libgcc_mock/libgcc_eh.a
2828
mkdir -p $(CARGOTMP) && cp ./rust/cargo_vendor_config.toml $(CARGOTMP)/config.toml
2929
$(TAR) --extract --xz -f ./rust/vendor.tar.xz -C ./rust
30+
echo "Rust version:" `rustc --version`
31+
echo "Cargo version:" `cargo --version`
3032

3133
export CARGO_HOME="$(CARGOTMP)" && \
3234
export CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER="$(CARGO_LINKER)" && \
3335
export LIBRARY_PATH="$${LIBRARY_PATH};$(LIBDIR)/libgcc_mock" && \
34-
cargo build --jobs 2 --target $(TARGET) --lib --offline --release --manifest-path ./rust/Cargo.toml --target-dir $(TARGET_DIR)
36+
cargo build -j 2 --target $(TARGET) --lib --offline --release --manifest-path ./rust/Cargo.toml --target-dir $(TARGET_DIR)
3537
rm -Rf $(CARGOTMP)
3638
rm -Rf $(VENDOR_DIR)
3739
rm -Rf $(LIBDIR)/build

0 commit comments

Comments
 (0)