Skip to content

eonil/TeachingMyselfRust

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
a1
 
 
a2
 
 
a3
 
 
b1
 
 
c1
 
 
 
 
 
 

README

Trials to practice Rust code.

Curernt Status

Linking itself is working well.

  • a1 --- Calling Rust function from C program works for simple signatures.
  • a2 --- Spawning a new Rust task doesn't work. It crashes.
  • a3 --- a2 with no println or printf! calling.

It seems to be better to use Rust as the driver program compiler, and linking any other C/C++ libraries into there.

  • b1 --- Compiling a host program for iOS. Doesn't work. It needs cross-compiler, and the cross-compiler is not shipped with default Homebrew distribution.

  • c1 --- Link Rust library into C and calls AppKit. This works. Do not run using Xcode. Just run all.bash. Take care your current directory must be c1. You can check print log by running the app in lldb.

Helpful Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published