title: How to call assembly functions inside Rust?
body: <p>I know that one way to call C functions inside Rust is to use something like this:</p>
  
  <pre><code>extern "C" {
      fn abs(input: i32) -&gt; i32;
  }
  
  fn main() {
      unsafe {
          println!("abs(-3) = {}", abs(-3));
      }
  }
  </code></pre>
  
  <p>But how does one call some assembly functions (located inside <code>.s</code> file in the same directory as other Rust files) inside a Rust code?</p>