File tree Expand file tree Collapse file tree 4 files changed +44
-0
lines changed Expand file tree Collapse file tree 4 files changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -34,3 +34,7 @@ topylogic/__pycache__/*
34
34
topylogic /topylogic.py
35
35
topylogic /_topylogic.so
36
36
topylogic /topylogic_wrap.c
37
+
38
+ # rustopologic/RustWrap/Cargo.toml
39
+ rustopologic /RustWrap /Cargo.lock
40
+ rustopologic /RustWrap /target /*
Original file line number Diff line number Diff line change
1
+ [package ]
2
+ name = " RustWrap"
3
+ version = " 0.1.0"
4
+ authors = [" BTMichalowicz <benjaminmichalowicz98@gmail.com>" ]
5
+ edition = " 2018"
6
+
7
+ # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8
+
9
+ [dependencies ]
10
+ libc = " 0.2.0"
11
+
Original file line number Diff line number Diff line change
1
+ fn main ( ) {
2
+ pkg_config:: Config :: new ( )
3
+ . atleast_version ( "1.0" )
4
+ . probe ( "z" )
5
+ . unwrap ( ) ;
6
+
7
+ let src=[
8
+ "../../../src/*.c"
9
+ ] ;
10
+ let include=[
11
+ "../../../include/*.h"
12
+ ] ;
13
+ let mut builder = cc:: Build :: new ( ) ;
14
+ let build = builder
15
+ . files ( src. iter ( ) )
16
+ . include ( "../../../include/*" )
17
+ . flag ( "-Wall" )
18
+ . flag ( "-Werror" )
19
+ . flag ( "-g" )
20
+ . flag ( "-lpthread" )
21
+ . flag ( "-pthread" )
22
+ . flag ( "-L. -ltopologic -lfl -fPIC" )
23
+ . define ( "USE_ZLIB" , None ) ;
24
+
25
+ build. compile ( "rustopologic" ) ;
26
+ }
Original file line number Diff line number Diff line change
1
+ fn main ( ) {
2
+ println ! ( "Hello, world!" ) ;
3
+ }
You can’t perform that action at this time.
0 commit comments