1. 02 7月, 2015 4 次提交
    • B
      Auto merge of #26658 - alexcrichton:windows-net-no-inherit, r=aturon · d2cf9f96
      bors 提交于
      This was added after Windows 7 SP1, so it's not always available. Instead use
      the `SetHandleInformation` function to flag a socket as not inheritable. This is
      not atomic with respect to creating new processes, but it mirrors what Unix does
      with respect to possibly using the atomic option in the future.
      
      Closes #26543
      d2cf9f96
    • B
      Auto merge of #26034 - Gankro:deprecate-bits, r=alexcrichton · 8a599c8c
      bors 提交于
      I've mirrored them out to crates (bit-vec and bit-set) that build on stable.
      
      (not sure if this actually correctly deprecates them in std)
      8a599c8c
    • A
      fallout of bitvec/bitset deprecation · 7850c8d0
      Alexis Beingessner 提交于
      7850c8d0
    • B
      Auto merge of #26675 - azerupi:doc-js-keyevent, r=alexcrichton · 9d67b9f0
      bors 提交于
      Like explained in #26016, typing `?` had no effect with non-english keyboard layouts in the docs. 
      
      This patch seems to resolve this issue, **tested with AZERTY keyboard in Google Chrome and Firefox**. I haven't tested it with more exotic keyboard layouts or with other browsers though.
      
      This code is based on the information found on: http://javascript.info/tutorial/keyboard-events
      
      **More specifically:**
      
      > The only event which reliably provides the character is keypress.
      
      **And**
      
      >```
      // event.type must be keypress
      function getChar(event) {
        if (event.which == null) {
          return String.fromCharCode(event.keyCode) // IE
        } else if (event.which!=0 && event.charCode!=0) {
          return String.fromCharCode(event.which)   // the rest
        } else {
          return null // special key
        }
      }
      ```
      
      `?` and `S` work, `escape` however does not (on an Azerty keyboard). 
      
      It would be good if some people could test it with other browsers and keyboard layouts: http://www.mathieudavid.org/test/rustdoc/std/index.html
      
      **Edit:**
      - swedish layout works on Firefox and Chromium
      - french (azerty) mac layout works on Safari
      9d67b9f0
  2. 01 7月, 2015 34 次提交
  3. 30 6月, 2015 2 次提交