Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix version cargo #34

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

necnec
Copy link

@necnec necnec commented Nov 10, 2021

No description provided.

Copy link
Owner

@vaaaaanquish vaaaaanquish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great works:)
I commented on it.

@@ -1,3 +1,3 @@
[submodule "lightgbm-sys/lightgbm"]
path = lightgbm-sys/lightgbm
url = https://github.com/vaaaaanquish/LightGBM.git
url = https://github.com/microsoft/LightGBM.git
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@necnec Thx.

I don't think it's a good practice to use microsoft/LightGBM, because many useless files are included in target of build. I removed them in vaaaaanquish/LightGBM.
(commit log: https://github.com/vaaaaanquish/LightGBM/commits/master)

We have 2 way.

  1. Rebase microsoft/LightGBM to vaaaaanquish/LightGBM as vendering.
    • current way
  2. Create a way to exclude useless files from the latest build of microsoft/LightGBM.
    • use exclude/include in cargo.toml (doc)
    • improve build.rs

@@ -1,6 +1,8 @@
# lightgbm-rs
LightGBM Rust binding

git clone --recursive https://github.com/aarki/lightgbm-rs.git
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plz

Suggested change
git clone --recursive https://github.com/aarki/lightgbm-rs.git
git clone --recursive https://github.com/vaaaaanquish/lightgbm-rs.git

@@ -14,4 +14,4 @@ libc = "0.2.81"

[build-dependencies]
bindgen = "0.56.0"
cmake = "0.1"
cmake = "=0.1.45"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@necnec I don't like to specify a minor version to avoid conflicts with other libraries. If you have any inconveniences, please write them in the comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants